Sha256: 80e120138218ee8b129b108c0b0e33135f8bb833dd99ac8d20c34275ffa3b651
Contents?: true
Size: 636 Bytes
Versions: 7
Compression:
Stored size: 636 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' require 'oauth/helper' class ClientNoneTest < ActiveSupport::TestCase include OAuth::Helper def setup @oauth_nonce = OauthNonce.remember(generate_key,Time.now.to_i) end def test_should_be_valid assert @oauth_nonce.valid? end def test_should_not_have_errors assert_equal [], @oauth_nonce.errors.full_messages end def test_should_not_be_a_new_record assert !@oauth_nonce.new_record? end def test_shuold_not_allow_a_second_one_with_the_same_values assert_equal false, OauthNonce.remember(@oauth_nonce.nonce, @oauth_nonce.timestamp) end end
Version data entries
7 entries across 7 versions & 4 rubygems