Sha256: c8fdfd15636d905fb926e543e927d6e01ec0bc5ab0bfdb62a1d0b9059e347348

Contents?: true

Size: 555 Bytes

Versions: 1

Compression:

Stored size: 555 Bytes

Contents

require 'spec_helper'

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

  context "client options" do
    it 'should have correct name' do
      expect(subject.options.name).to eq('bandify_oauth2')
    end

    it 'should have correct site' do
      expect(subject.options.client_options.site).to eq('https://account.bandify.co')
    end

    it 'should have correct authorize url' do
      expect(subject.options.client_options.authorize_url).to eq('/oauth/authorize')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
omniauth-bandify-oauth2-0.1.1 spec/omniauth/strategies/bandify_oauth2_spec.rb