Sha256: 11a9bf553add81d2a17ab418f86b6ae5d41310588d5df17b392bfd8671142777

Contents?: true

Size: 781 Bytes

Versions: 26

Compression:

Stored size: 781 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'
describe ClientApplication do
  fixtures :users, :client_applications, :oauth_tokens
  before(:each) do
    @application = ClientApplication.create :name => "Agree2", :url => "http://agree2.com", :user => users(:quentin)
  end

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


  it "should not have errors" do
    @application.errors.full_messages.should == []
  end

  it "should have key and secret" do
    @application.key.should_not be_nil
    @application.secret.should_not be_nil
  end

  it "should have credentials" do
    @application.credentials.should_not be_nil
    @application.credentials.key.should == @application.key
    @application.credentials.secret.should == @application.secret
  end

end

Version data entries

26 entries across 19 versions & 6 rubygems

Version Path
houston-oauth-plugin-0.5.1 lib/generators/rspec/templates/client_application_spec.rb
houston-oauth-plugin-0.5.1 generators/oauth_provider/templates/client_application_spec.rb
panjiva-oauth-plugin-0.4.1 lib/generators/rspec/templates/client_application_spec.rb
panjiva-oauth-plugin-0.4.1 generators/oauth_provider/templates/client_application_spec.rb
oauth-plugin-0.5.1 generators/oauth_provider/templates/client_application_spec.rb
oauth-plugin-0.5.1 lib/generators/rspec/templates/client_application_spec.rb
oauth-plugin-0.5.0 generators/oauth_provider/templates/client_application_spec.rb
oauth-plugin-0.5.0 lib/generators/rspec/templates/client_application_spec.rb
oauth-provider-0.5.0rc1 generators/oauth_provider/templates/client_application_spec.rb
oauth-provider-0.5.0rc1 lib/generators/rspec/templates/client_application_spec.rb
oauth-plugin-0.4.1 lib/generators/rspec/templates/client_application_spec.rb
oauth-plugin-0.4.1 generators/oauth_provider/templates/client_application_spec.rb
oauth-plugin-0.4.0 generators/oauth_provider/templates/client_application_spec.rb
oauth-plugin-0.4.0 lib/generators/rspec/templates/client_application_spec.rb
oauth-plugin-0.4.0.rc2 lib/generators/rspec/templates/client_application_spec.rb
oauth-plugin-0.4.0.rc1 lib/generators/rspec/templates/client_application_spec.rb
oauth-plugin-0.4.0.pre7 lib/generators/rspec/templates/client_application_spec.rb
oauth-plugin-0.4.0.pre6 lib/generators/rspec/templates/client_application_spec.rb
oauth-plugin-0.4.0.pre5 lib/generators/rspec/templates/client_application_spec.rb
insrc-oauth-plugin-0.4.0.pre6 lib/generators/rspec/templates/client_application_spec.rb