From a95a9822cf6d31b0b8b2a9cb86f5f47294608a11 Mon Sep 17 00:00:00 2001 From: James Tucker Date: Wed, 21 Dec 2011 18:54:32 -0400 Subject: [PATCH] Fix deflater tests for jruby --- test/spec_deflater.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/spec_deflater.rb b/test/spec_deflater.rb index 0c9d060b9..574756069 100644 --- a/test/spec_deflater.rb +++ b/test/spec_deflater.rb @@ -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... @@ -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