Skip to content

Commit

Permalink
Fix deflater tests for jruby
Browse files Browse the repository at this point in the history
  • Loading branch information
raggi committed Dec 21, 2011
1 parent d1cf716 commit a95a982
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/spec_deflater.rb
Expand Up @@ -51,7 +51,7 @@ class << body; def each; yield("foo"); yield("bar"); end; end
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...
Expand Down Expand Up @@ -104,7 +104,7 @@ class << body; def each; yield("foo"); yield("bar"); end; end
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
Expand Down

0 comments on commit a95a982

Please sign in to comment.