Sha256: e3e74935f0b4d1e9bf08ac780ca7c0e4e024bba0427a4bf8c1fc8c44a9191166

Contents?: true

Size: 620 Bytes

Versions: 10

Compression:

Stored size: 620 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe Oauth2Token do
  fixtures :client_applications, :users, :oauth_tokens
  before(:each) do
    @token = Oauth2Token.create :client_application => client_applications(:one), :user=>users(:aaron)
  end

  it "should be valid" do
    @token.should be_valid
  end

  it "should have a token" do
    @token.token.should_not be_nil
  end

  it "should have a secret" do
    @token.secret.should_not be_nil
  end

  it "should be authorized" do
    @token.should be_authorized
  end

  it "should not be invalidated" do
    @token.should_not be_invalidated
  end

end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
oauth-plugin-0.4.0.pre7 lib/generators/rspec/templates/oauth2_token_spec.rb
oauth-plugin-0.4.0.pre6 lib/generators/rspec/templates/oauth2_token_spec.rb
oauth-plugin-0.4.0.pre5 lib/generators/rspec/templates/oauth2_token_spec.rb
insrc-oauth-plugin-0.4.0.pre6 lib/generators/rspec/templates/oauth2_token_spec.rb
insrc-oauth-plugin-0.4.0.pre5 lib/generators/rspec/templates/oauth2_token_spec.rb
le1t0-oauth-plugin-0.4.0.pre4.001 lib/generators/rspec/templates/oauth2_token_spec.rb
oauth-plugin-0.4.0.pre4 lib/generators/rspec/templates/oauth2_token_spec.rb
oauth-plugin-0.4.0.pre3 lib/generators/rspec/templates/oauth2_token_spec.rb
oauth-plugin-0.4.0.pre2 lib/generators/rspec/templates/oauth2_token_spec.rb
oauth-plugin-0.4.0.pre1 lib/generators/rspec/templates/oauth2_token_spec.rb