Sha256: d78d28f46ebc3fe201404b4e50d99830898c96a7aa7447ef81d7f823db48be1b

Contents?: true

Size: 736 Bytes

Versions: 3

Compression:

Stored size: 736 Bytes

Contents

require 'spec_helper'
require 'omniauth-createsend'

describe OmniAuth::Strategies::CreateSend do
  subject do
    OmniAuth::Strategies::CreateSend.new({})
  end

  describe '#client' do
    it 'should have the correct createsend site' do
      subject.client.site.should eq("https://api.createsend.com")
    end

    it 'should have the correct authorization url' do
      subject.client.options[:authorize_url].should eq("/oauth")
    end

    it 'should have the correct token url' do
      subject.client.options[:token_url].should eq('/oauth/token')
    end
  end

  describe '#callback_path' do
    it 'should have the correct callback path' do
      subject.callback_path.should eq('/auth/createsend/callback')
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
omniauth-createsend-1.0.1 spec/omniauth/strategies/createsend_spec.rb
omniauth-createsend-1.0.0 spec/omniauth/strategies/createsend_spec.rb
omniauth-createsend-0.0.2 spec/omniauth/strategies/createsend_spec.rb