diff options
author | James Tucker <jftucker@gmail.com> | 2011-12-21 18:54:32 -0400 |
---|---|---|
committer | James Tucker <jftucker@gmail.com> | 2011-12-21 18:54:32 -0400 |
commit | a95a9822cf6d31b0b8b2a9cb86f5f47294608a11 (patch) | |
tree | f56b42b5cc56a687db7f7ee4f319d926fa3fda82 /test/spec_deflater.rb | |
parent | d1cf7167118a85ad67ed266b81e08c7a349ca212 (diff) | |
download | rack-a95a9822cf6d31b0b8b2a9cb86f5f47294608a11.tar.gz |
Fix deflater tests for jruby
Diffstat (limited to 'test/spec_deflater.rb')
-rw-r--r-- | test/spec_deflater.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/spec_deflater.rb b/test/spec_deflater.rb index 0c9d060b..57475606 100644 --- a/test/spec_deflater.rb +++ b/test/spec_deflater.rb @@ -51,7 +51,7 @@ describe Rack::Deflater do response[2].each { |part| buf << inflater.inflate(part) } buf << inflater.finish buf.delete_if { |part| part.empty? } - buf.should.equal(%w(foo bar)) + buf.join.should.equal("foobar") end # TODO: This is really just a special case of the above... @@ -104,7 +104,7 @@ describe Rack::Deflater do response[2].each { |part| buf << inflater.inflate(part) } buf << inflater.finish buf.delete_if { |part| part.empty? } - buf.should.equal(%w(foo bar)) + buf.join.should.equal("foobar") end should "be able to fallback to no deflation" do |