X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/aa1fb6dbb8c2e71b8ce8c231ae1272a2dfebd75a..87422e56f96b6fd6c000663d809795d6695f2aa1:/test/models/oauth_nonce_test.rb diff --git a/test/models/oauth_nonce_test.rb b/test/models/oauth_nonce_test.rb index dd97278c1..56178fb5f 100644 --- a/test/models/oauth_nonce_test.rb +++ b/test/models/oauth_nonce_test.rb @@ -12,7 +12,7 @@ class OauthNonceTest < ActiveSupport::TestCase assert_not_equal false, nonce1, "First nonce should be unique. Check your test database is empty." nonce2 = OauthNonce.remember(string, timestamp) - assert_equal false, nonce2, "Shouldn't be able to remember the same nonce twice." + assert_not nonce2, "Shouldn't be able to remember the same nonce twice." end ## @@ -21,7 +21,7 @@ class OauthNonceTest < ActiveSupport::TestCase string = "0123456789ABCDEF" nonce1 = OauthNonce.remember(string, Time.now.to_i - 86430) - assert_equal false, nonce1, "Nonces over a day in the past should be rejected" + assert_not nonce1, "Nonces over a day in the past should be rejected" nonce2 = OauthNonce.remember(string, Time.now.to_i - 86370) assert_not_equal false, nonce2, "Nonces under a day in the past should be rejected"