2 require File.dirname(__FILE__) + '/../test_helper'
4 class ClientNoneTest < ActiveSupport::TestCase
8 @oauth_nonce = OauthNonce.remember(generate_key,Time.now.to_i)
11 def test_should_be_valid
12 assert @oauth_nonce.valid?
15 def test_should_not_have_errors
16 assert_equal [], @oauth_nonce.errors.full_messages
19 def test_should_not_be_a_new_record
20 assert !@oauth_nonce.new_record?
23 def test_shuold_not_allow_a_second_one_with_the_same_values
24 assert_equal false, OauthNonce.remember(@oauth_nonce.nonce, @oauth_nonce.timestamp)