aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2015-10-04 07:39:46 -0600
committerSean Griffin <sean@seantheprogrammer.com>2015-10-04 07:39:46 -0600
commit0e27ad35259b634d929e30d6d7bb4f66ef3d9fa9 (patch)
tree8d783a1299834ed202b78272ad8f8e98754b4c4e /actionpack
parent7976b6d3069d18aa4279921e15d90ef13197fd78 (diff)
parent2ded9c657af4ab4dbf5ee3261b114b1a5a3a2d93 (diff)
downloadrails-0e27ad35259b634d929e30d6d7bb4f66ef3d9fa9.tar.gz
rails-0e27ad35259b634d929e30d6d7bb4f66ef3d9fa9.tar.bz2
rails-0e27ad35259b634d929e30d6d7bb4f66ef3d9fa9.zip
Merge pull request #21848 from yui-knk/test_suppress_warnings
Suppress warnings of `assigned but unused variable`
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/dispatch/response_test.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/actionpack/test/dispatch/response_test.rb b/actionpack/test/dispatch/response_test.rb
index 2b2fea7504..c4f52fcc3a 100644
--- a/actionpack/test/dispatch/response_test.rb
+++ b/actionpack/test/dispatch/response_test.rb
@@ -146,7 +146,7 @@ class ResponseTest < ActiveSupport::TestCase
test "cookies" do
@response.set_cookie("user_name", :value => "david", :path => "/")
- status, headers, body = @response.to_a
+ _status, headers, _body = @response.to_a
assert_equal "user_name=david; path=/", headers["Set-Cookie"]
assert_equal({"user_name" => "david"}, @response.cookies)
end
@@ -154,7 +154,7 @@ class ResponseTest < ActiveSupport::TestCase
test "multiple cookies" do
@response.set_cookie("user_name", :value => "david", :path => "/")
@response.set_cookie("login", :value => "foo&bar", :path => "/", :expires => Time.utc(2005, 10, 10,5))
- status, headers, body = @response.to_a
+ _status, headers, _body = @response.to_a
assert_equal "user_name=david; path=/\nlogin=foo%26bar; path=/; expires=Mon, 10 Oct 2005 05:00:00 -0000", headers["Set-Cookie"]
assert_equal({"login" => "foo&bar", "user_name" => "david"}, @response.cookies)
end
@@ -163,7 +163,6 @@ class ResponseTest < ActiveSupport::TestCase
@response.set_cookie("user_name", :value => "david", :path => "/")
@response.set_cookie("login", :value => "foo&bar", :path => "/", :expires => Time.utc(2005, 10, 10,5))
@response.delete_cookie("login")
- status, headers, body = @response.to_a
assert_equal({"user_name" => "david", "login" => nil}, @response.cookies)
end