Sha256: 8b00b175891acf115ec9d3be3f8516dfb9192a234c7e50479d203f7d56e3dbb4

Contents?: true

Size: 650 Bytes

Versions: 6

Compression:

Stored size: 650 Bytes

Contents

require 'spec_helper'

describe OmniAuth::Strategies::Dailycred do
  subject do
    OmniAuth::Strategies::Dailycred.new(nil, @options || {})
  end
  
  
  describe '#client' do
      it 'should have the correct dwolla site' do
        subject.client.site.should eq("https://auth.dailycred.com")
      end
      it 'should have the correct authorization url' do
        subject.client.options[:authorize_url].should eq("https://auth.dailycred.com/oauth/authorize")
      end
      
      it 'should have the correct token url' do
        subject.client.options[:token_url].should eq('https://auth.dailycred.com/oauth/tokeninfo')
      end
  end
  
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
dailycred-0.1.21 spec/omniauth/strategies/dailycred_spec.rb
dailycred-0.1.2 spec/omniauth/strategies/dailycred_spec.rb
dailycred-0.1.1 spec/omniauth/strategies/dailycred_spec.rb
dailycred-0.1.0 spec/omniauth/strategies/dailycred_spec.rb
omniauth-dailycred-0.0.2 spec/omniauth/strategies/dailycred_spec.rb
omniauth-dailycred-0.0.1 spec/omniauth/strategies/dailycred_spec.rb