Sha256: ddf8f545932e1ad8e480a52a537582bd3d102e330e18125f6f590a5d10109eab

Contents?: true

Size: 792 Bytes

Versions: 48

Compression:

Stored size: 792 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

48 entries across 48 versions & 6 rubygems

Version Path
oauth-plugin-0.4.0.pre1 generators/oauth_provider/templates/client_application_spec.rb
muck-oauth-0.2.4 test/rails_root/spec/models/client_application_spec.rb
muck-oauth-0.2.3 test/rails_root/spec/models/client_application_spec.rb
muck-oauth-0.2.2 test/rails_root/spec/models/client_application_spec.rb
muck-oauth-0.2.1 test/rails_root/spec/models/client_application_spec.rb
muck-oauth-0.2.0 test/rails_root/spec/models/client_application_spec.rb
muck-oauth-0.1.11 test/rails_root/spec/models/client_application_spec.rb
muck-oauth-0.1.9 test/rails_root/spec/models/client_application_spec.rb
muck-oauth-0.1.8 test/rails_root/spec/models/client_application_spec.rb
muck-oauth-0.1.7 test/rails_root/spec/models/client_application_spec.rb
muck-oauth-0.1.6 test/rails_root/spec/models/client_application_spec.rb
muck-oauth-0.1.5 test/rails_root/spec/models/client_application_spec.rb
muck-oauth-0.1.4 test/rails_root/spec/models/client_application_spec.rb
muck-oauth-0.1.3 test/rails_root/spec/models/client_application_spec.rb
muck-oauth-0.1.2 test/rails_root/spec/models/client_application_spec.rb
muck-oauth-0.1.1 test/rails_root/spec/models/client_application_spec.rb
muck-oauth-0.1.0 test/rails_root/spec/models/client_application_spec.rb
oauth-plugin-0.3.14 generators/oauth_provider/templates/client_application_spec.rb
oauth-plugin-0.3.13 generators/oauth_provider/templates/client_application_spec.rb
oauth-plugin-0.3.12 generators/oauth_provider/templates/client_application_spec.rb