X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/b095b59d5e0ee805e49980af80b21bd1acff1345..ef7f3d800cbdd49b692df10d312e5fd880e2e938:/test/models/oauth_nonce_test.rb diff --git a/test/models/oauth_nonce_test.rb b/test/models/oauth_nonce_test.rb index ffbad0af6..703774ec8 100644 --- a/test/models/oauth_nonce_test.rb +++ b/test/models/oauth_nonce_test.rb @@ -9,12 +9,11 @@ class OauthNonceTest < ActiveSupport::TestCase def test_nonce_uniqueness string = "0123456789ABCDEF" timestamp = Time.now - + nonce1 = OauthNonce.remember(string, timestamp) 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." end - end