diff options
author | Jeremy Evans <code@jeremyevans.net> | 2022-03-03 19:29:27 -0800 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2022-03-03 21:35:08 -0800 |
commit | 09242ede8b279a2b1383a1598d84a7bd39710b48 (patch) | |
tree | 264acae356068a3f53f7262fcfa607497fbd89da /test/spec_lock.rb | |
parent | b98c7ed44b6d737c376279533274a4dca652f2f0 (diff) | |
download | rack-09242ede8b279a2b1383a1598d84a7bd39710b48.tar.gz |
Fix verbose warnings in specs
Diffstat (limited to 'test/spec_lock.rb')
-rw-r--r-- | test/spec_lock.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/test/spec_lock.rb b/test/spec_lock.rb index 37c73d28..3980fc98 100644 --- a/test/spec_lock.rb +++ b/test/spec_lock.rb @@ -158,15 +158,6 @@ describe Rack::Lock do lock.unlocked?.must_equal false end - it "not reset the environment while the body is proxied" do - proxy = Class.new do - attr_reader :env - def initialize(env) @env = env end - end - app = Rack::Lock.new lambda { |env| [200, { "content-type" => "text/plain" }, proxy.new(env)] } - response = app.call(Rack::MockRequest.env_for("/"))[2] - end - it "unlock if an exception occurs before returning" do lock = Lock.new env = Rack::MockRequest.env_for("/") |