diff options
author | Daniel Colson <danieljamescolson@gmail.com> | 2018-01-25 18:16:57 -0500 |
---|---|---|
committer | Daniel Colson <danieljamescolson@gmail.com> | 2018-01-25 23:32:59 -0500 |
commit | 82c39e1a0b5114e2d89a80883a41090567a83196 (patch) | |
tree | 476f620e0224130ca3dca3ed4e9b5a58fb0d5da9 /actionpack/test/dispatch | |
parent | 94333a4c31bd10c1f358c538a167e6a4589bae2d (diff) | |
download | rails-82c39e1a0b5114e2d89a80883a41090567a83196.tar.gz rails-82c39e1a0b5114e2d89a80883a41090567a83196.tar.bz2 rails-82c39e1a0b5114e2d89a80883a41090567a83196.zip |
Use assert_empty and assert_not_empty
Diffstat (limited to 'actionpack/test/dispatch')
-rw-r--r-- | actionpack/test/dispatch/cookies_test.rb | 4 | ||||
-rw-r--r-- | actionpack/test/dispatch/request_test.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/dispatch/cookies_test.rb b/actionpack/test/dispatch/cookies_test.rb index 40cbad3b0d..f01c9eed77 100644 --- a/actionpack/test/dispatch/cookies_test.rb +++ b/actionpack/test/dispatch/cookies_test.rb @@ -319,7 +319,7 @@ class CookiesTest < ActionController::TestCase def test_setting_the_same_value_to_cookie request.cookies[:user_name] = "david" get :authenticate - assert_predicate response.cookies, :empty? + assert_empty response.cookies end def test_setting_the_same_value_to_permanent_cookie @@ -401,7 +401,7 @@ class CookiesTest < ActionController::TestCase def test_delete_unexisting_cookie request.cookies.clear get :delete_cookie - assert_predicate @response.cookies, :empty? + assert_empty @response.cookies end def test_deleted_cookie_predicate diff --git a/actionpack/test/dispatch/request_test.rb b/actionpack/test/dispatch/request_test.rb index 8e5c953ad6..84a2d1f69e 100644 --- a/actionpack/test/dispatch/request_test.rb +++ b/actionpack/test/dispatch/request_test.rb @@ -1253,7 +1253,7 @@ class RequestVariant < BaseRequestTest test "clearing variant" do @request.variant = nil - assert_predicate @request.variant, :empty? + assert_empty @request.variant assert_not_predicate @request.variant, :phone? assert_not @request.variant.any?(:phone, :tablet) end |