X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b095b59d5e0ee805e49980af80b21bd1acff1345..c82c760e9dc690540e2e5cf8de577d0a1ac3154d:/test/models/oauth_nonce_test.rb?ds=inline 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