Sha256: f6e037d62598d500df8e99b161e7285c9d17c1c0120d31cc92f8877c697a614a

Contents?: true

Size: 636 Bytes

Versions: 19

Compression:

Stored size: 636 Bytes

Contents

require 'oauth/helper'
require File.dirname(__FILE__) + '/../test_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

19 entries across 19 versions & 6 rubygems

Version Path
houston-oauth-plugin-0.5.1 lib/generators/test_unit/templates/oauth_nonce_test.rb
panjiva-oauth-plugin-0.4.1 lib/generators/test_unit/templates/oauth_nonce_test.rb
oauth-plugin-0.5.1 lib/generators/test_unit/templates/oauth_nonce_test.rb
oauth-plugin-0.5.0 lib/generators/test_unit/templates/oauth_nonce_test.rb
oauth-provider-0.5.0rc1 lib/generators/test_unit/templates/oauth_nonce_test.rb
oauth-plugin-0.4.1 lib/generators/test_unit/templates/oauth_nonce_test.rb
oauth-plugin-0.4.0 lib/generators/test_unit/templates/oauth_nonce_test.rb
oauth-plugin-0.4.0.rc2 lib/generators/test_unit/templates/oauth_nonce_test.rb
oauth-plugin-0.4.0.rc1 lib/generators/test_unit/templates/oauth_nonce_test.rb
oauth-plugin-0.4.0.pre7 lib/generators/test_unit/templates/oauth_nonce_test.rb
oauth-plugin-0.4.0.pre6 lib/generators/test_unit/templates/oauth_nonce_test.rb
oauth-plugin-0.4.0.pre5 lib/generators/test_unit/templates/oauth_nonce_test.rb
insrc-oauth-plugin-0.4.0.pre6 lib/generators/test_unit/templates/oauth_nonce_test.rb
insrc-oauth-plugin-0.4.0.pre5 lib/generators/test_unit/templates/oauth_nonce_test.rb
le1t0-oauth-plugin-0.4.0.pre4.001 lib/generators/test_unit/templates/oauth_nonce_test.rb
oauth-plugin-0.4.0.pre4 lib/generators/test_unit/templates/oauth_nonce_test.rb
oauth-plugin-0.4.0.pre3 lib/generators/test_unit/templates/oauth_nonce_test.rb
oauth-plugin-0.4.0.pre2 lib/generators/test_unit/templates/oauth_nonce_test.rb
oauth-plugin-0.4.0.pre1 lib/generators/test_unit/templates/oauth_nonce_test.rb