Sha256: 158ee642b1a442ff42287cd6e9a7648be7fb631f25d9474c22bda9b2215ec859
Contents?: true
Size: 923 Bytes
Versions: 4
Compression:
Stored size: 923 Bytes
Contents
shared_examples 'an oauth2 strategy' do describe '#client' do it 'should be initialized with symbolized client_options' do @options = { :client_options => { 'authorize_url' => 'https://example.com' } } expect(subject.client.options[:authorize_url]).to eq('https://example.com') end end describe '#token_params' do it 'should include any authorize params passed in the :authorize_params option' do @options = { :token_params => { :foo => 'bar', :baz => 'zip' } } expect(subject.token_params['foo']).to eq('bar') expect(subject.token_params['baz']).to eq('zip') end it 'should include top-level options that are marked as :authorize_options' do @options = { :token_options => [:scope, :foo], :scope => 'bar', :foo => 'baz' } expect(subject.token_params['scope']).to eq('bar') expect(subject.token_params['foo']).to eq('baz') end end end
Version data entries
4 entries across 4 versions & 1 rubygems