-require 'test_helper'
+require "test_helper"
class OauthNonceTest < ActiveSupport::TestCase
api_fixtures
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