Sha256: 3a7d132f8c39af46174106bba5f420ea2b12aa94bd21efb8572d0dc8b24f6499
Contents?: true
Size: 744 Bytes
Versions: 2
Compression:
Stored size: 744 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe 'OmniAuth::Polaris::Adaptor' do describe 'initialize' do let!(:patron_url) { 'http://blah.org/PAPIService/REST/public/v1/1000/100/1/patron/' } it 'is expected to throw exception when must have field is not set' do expect { OmniAuth::Polaris::Adaptor.new({ http_uri: patron_url, method: 'POST' }) }.to raise_error(OmniAuth::Polaris::ConfigurationError) end it 'is expected to throw exception when method is not supported' do expect { OmniAuth::Polaris::Adaptor.new({ http_uri: patron_url, method: 'GET', access_key: 'F9998888-A000-1111-C22C-CC3333BB4444', access_id: 'API' }) }.to raise_error(OmniAuth::Polaris::ConfigurationError) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
omniauth-polaris-1.1.1 | spec/omniauth/polaris/adaptor_spec.rb |
omniauth-polaris-1.1.0 | spec/omniauth/polaris/adaptor_spec.rb |