+ ##
+ # nonces that are not current should be rejected
+ def test_nonce_not_current
+ 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"
+
+ nonce2 = OauthNonce.remember(string, Time.now.to_i - 86370)
+ assert_not_equal false, nonce2, "Nonces under a day in the past should be rejected"
+ end