aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2016-12-25 10:29:45 +0900
committerAkira Matsuda <ronnie@dio.jp>2016-12-25 13:15:56 +0900
commit019cc5960d25582966733d2bba54553869e67496 (patch)
tree6424c0ab457e274c25a16ba7c59b03116b13ac02 /actionpack
parent4ba9e61d99dfe1d65d8aefd66eeec653f965c8d9 (diff)
downloadrails-019cc5960d25582966733d2bba54553869e67496.tar.gz
rails-019cc5960d25582966733d2bba54553869e67496.tar.bz2
rails-019cc5960d25582966733d2bba54553869e67496.zip
"Use assert_nil if expecting nil from ...:in `...'. This will fail in minitest 6."
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/controller/http_token_authentication_test.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/test/controller/http_token_authentication_test.rb b/actionpack/test/controller/http_token_authentication_test.rb
index 3842136682..09d2793c9a 100644
--- a/actionpack/test/controller/http_token_authentication_test.rb
+++ b/actionpack/test/controller/http_token_authentication_test.rb
@@ -166,8 +166,7 @@ class HttpTokenAuthenticationTest < ActionController::TestCase
test "token_and_options returns nil with no value after the equal sign" do
actual = ActionController::HttpAuthentication::Token.token_and_options(malformed_request).first
- expected = nil
- assert_equal(expected, actual)
+ assert_nil actual
end
test "raw_params returns a tuple of two key value pair strings" do