diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-09-22 16:47:22 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-09-27 11:19:22 -0300 |
commit | 583ddf22a2a9d9f903ff0f2dba72cc04e80a378f (patch) | |
tree | 4b20582ac4b4aecc44487d88bc69690d2ac2aa9b /actionpack/test/dispatch | |
parent | dafb4bd33ba26bf8ca3455db270fee843c8bd2fd (diff) | |
download | rails-583ddf22a2a9d9f903ff0f2dba72cc04e80a378f.tar.gz rails-583ddf22a2a9d9f903ff0f2dba72cc04e80a378f.tar.bz2 rails-583ddf22a2a9d9f903ff0f2dba72cc04e80a378f.zip |
Remove more warnings shadowing outer local variable.
Diffstat (limited to 'actionpack/test/dispatch')
-rw-r--r-- | actionpack/test/dispatch/response_test.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/actionpack/test/dispatch/response_test.rb b/actionpack/test/dispatch/response_test.rb index c20fa10f63..1efb664304 100644 --- a/actionpack/test/dispatch/response_test.rb +++ b/actionpack/test/dispatch/response_test.rb @@ -120,10 +120,10 @@ class ResponseTest < ActiveSupport::TestCase end test "read cache control" do - resp = ActionDispatch::Response.new.tap { |resp| - resp.cache_control[:public] = true - resp.etag = '123' - resp.body = 'Hello' + resp = ActionDispatch::Response.new.tap { |_resp| + _resp.cache_control[:public] = true + _resp.etag = '123' + _resp.body = 'Hello' } resp.to_a @@ -135,10 +135,10 @@ class ResponseTest < ActiveSupport::TestCase end test "read charset and content type" do - resp = ActionDispatch::Response.new.tap { |resp| - resp.charset = 'utf-16' - resp.content_type = Mime::XML - resp.body = 'Hello' + resp = ActionDispatch::Response.new.tap { |_resp| + _resp.charset = 'utf-16' + _resp.content_type = Mime::XML + _resp.body = 'Hello' } resp.to_a |