X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/eab2eeaa47b2aa8c7f52371f9bfdd60711a41fb6..c9fdd5d3cb470e82b2cf457a022f034c0bda7e39:/test/models/oauth_nonce_test.rb?ds=sidebyside diff --git a/test/models/oauth_nonce_test.rb b/test/models/oauth_nonce_test.rb index ffbad0af6..f170bc69d 100644 --- a/test/models/oauth_nonce_test.rb +++ b/test/models/oauth_nonce_test.rb @@ -1,4 +1,4 @@ -require 'test_helper' +require "test_helper" class OauthNonceTest < ActiveSupport::TestCase api_fixtures @@ -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