class ClientNoneTest

Public Instance Methods

setup() click to toggle source
# File lib/generators/test_unit/templates/oauth_nonce_test.rb, line 7
def setup
  @oauth_nonce = OauthNonce.remember(generate_key,Time.now.to_i)
end
test_should_be_valid() click to toggle source
# File lib/generators/test_unit/templates/oauth_nonce_test.rb, line 11
def test_should_be_valid
  assert @oauth_nonce.valid?
end
test_should_not_be_a_new_record() click to toggle source
# File lib/generators/test_unit/templates/oauth_nonce_test.rb, line 19
def test_should_not_be_a_new_record
  assert !@oauth_nonce.new_record?
end
test_should_not_have_errors() click to toggle source
# File lib/generators/test_unit/templates/oauth_nonce_test.rb, line 15
def test_should_not_have_errors
  assert_equal [], @oauth_nonce.errors.full_messages
end
test_shuold_not_allow_a_second_one_with_the_same_values() click to toggle source
# File lib/generators/test_unit/templates/oauth_nonce_test.rb, line 23
def test_shuold_not_allow_a_second_one_with_the_same_values
  assert_equal false, OauthNonce.remember(@oauth_nonce.nonce, @oauth_nonce.timestamp)
end