Sha256: 241c67445095d4318de7cab1959532be6b2c9785b54bee397565f9eecd73cfe0
Contents?: true
Size: 872 Bytes
Versions: 1
Compression:
Stored size: 872 Bytes
Contents
require 'spec_helper' describe OmniAuth::Strategies::Kaeuferportal do def app lambda { |env| [200, {}, ["Hello."]] } end let(:fresh_strategy){ Class.new(OmniAuth::Strategies::Kaeuferportal) } before do OmniAuth.config.test_mode = true end after do OmniAuth.config.test_mode = false end describe '#client_options' do subject{ fresh_strategy } it 'should be initialized with symbolized client_options' do instance = subject.new(app, client_options: { 'authorize_url' => 'https://example.com' }) expect(instance.client.options[:authorize_url]).to eql 'https://example.com' end it 'should set ssl options as connection options' do instance = subject.new(app, client_options: { 'ssl' => { 'ca_path' => 'foo' } }) instance.client.options[:connection_opts][:ssl] =~ { ca_path: 'foo' } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-kaeuferportal-2.0.2 | spec/omniauth/strategies/kaeuferportal_spec.rb |