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