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
filiptepper-oauth-plugin-0.3.12 generators/oauth_provider/templates/client_application_spec.rb
oauth-plugin-0.3.11 generators/oauth_provider/templates/client_application_spec.rb
oauth-plugin-0.3.7 generators/oauth_provider/templates/client_application_spec.rb
oauth-plugin-0.3.5 generators/oauth_provider/templates/client_application_spec.rb
oauth-plugin-0.3.6 generators/oauth_provider/templates/client_application_spec.rb
oauth-plugin-0.3.9 generators/oauth_provider/templates/client_application_spec.rb
oauth-plugin-0.3.10 generators/oauth_provider/templates/client_application_spec.rb
oauth-plugin-0.3.8 generators/oauth_provider/templates/client_application_spec.rb