X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cb87f02642d0097ebc067ca1f9371dde274a41e3..c12f8959dd2059b4ea9d45caf716923d7589cbb0:/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"