diff options
author | Lars Gierth <lars.gierth@gmail.com> | 2011-12-28 23:49:28 +0100 |
---|---|---|
committer | Lars Gierth <lars@soundcloud.com> | 2012-03-31 20:23:55 +0200 |
commit | 8de490dc45e165aa7fdaf6236ab9d6bb7853715f (patch) | |
tree | e80401e496dc44131a351408b8af45c8f4664503 /test/spec_lock.rb | |
parent | 3502b0f3fd127aee9133267104dfb2d5c1c0cd36 (diff) | |
download | rack-8de490dc45e165aa7fdaf6236ab9d6bb7853715f.tar.gz |
Don't use Object#tap, 1.8.6 doesn't have it
Diffstat (limited to 'test/spec_lock.rb')
-rw-r--r-- | test/spec_lock.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/spec_lock.rb b/test/spec_lock.rb index 7acc01d6..7a58be43 100644 --- a/test/spec_lock.rb +++ b/test/spec_lock.rb @@ -115,11 +115,11 @@ describe Rack::Lock do env = Rack::MockRequest.env_for("/") body = [200, {"Content-Type" => "text/plain"}, %w{ hi mom }] app = lock_app(lambda { |inner_env| body }) - app.call(env).tap do |res| - res[0].should.equal body[0] - res[1].should.equal body[1] - Enumerator.new(res[2]).to_a.should.equal ["hi", "mom"] - end + + res = app.call(env) + res[0].should.equal body[0] + res[1].should.equal body[1] + Enumerator.new(res[2]).to_a.should.equal ["hi", "mom"] end should "call synchronize on lock" do |