|
5 | 5 | describe '#client' do
|
6 | 6 | it 'should be initialized with symbolized client_options' do
|
7 | 7 | @options = { :client_options => { 'authorize_url' => 'https://example.com' } }
|
8 |
| - subject.client.options[:authorize_url].should == 'https://example.com' |
| 8 | + expect(subject.client.options[:authorize_url]).to eq('https://example.com') |
9 | 9 | end
|
10 | 10 | end
|
11 | 11 |
|
12 | 12 | describe '#authorize_params' do
|
13 | 13 | it 'should include any authorize params passed in the :authorize_params option' do
|
14 | 14 | @options = { :authorize_params => { :foo => 'bar', :baz => 'zip' } }
|
15 |
| - subject.authorize_params['foo'].should eq('bar') |
16 |
| - subject.authorize_params['baz'].should eq('zip') |
| 15 | + expect(subject.authorize_params['foo']).to eq('bar') |
| 16 | + expect(subject.authorize_params['baz']).to eq('zip') |
17 | 17 | end
|
18 | 18 |
|
19 | 19 | it 'should include top-level options that are marked as :authorize_options' do
|
20 | 20 | @options = { :authorize_options => [:scope, :foo], :scope => 'bar', :foo => 'baz' }
|
21 |
| - subject.authorize_params['scope'].should eq('bar') |
22 |
| - subject.authorize_params['foo'].should eq('baz') |
| 21 | + expect(subject.authorize_params['scope']).to eq('bar') |
| 22 | + expect(subject.authorize_params['foo']).to eq('baz') |
23 | 23 | end
|
24 | 24 | end
|
25 | 25 |
|
26 | 26 | describe '#token_params' do
|
27 | 27 | it 'should include any token params passed in the :token_params option' do
|
28 | 28 | @options = { :token_params => { :foo => 'bar', :baz => 'zip' } }
|
29 |
| - subject.token_params['foo'].should eq('bar') |
30 |
| - subject.token_params['baz'].should eq('zip') |
| 29 | + expect(subject.token_params['foo']).to eq('bar') |
| 30 | + expect(subject.token_params['baz']).to eq('zip') |
31 | 31 | end
|
32 | 32 |
|
33 | 33 | it 'should include top-level options that are marked as :token_options' do
|
34 | 34 | @options = { :token_options => [:scope, :foo], :scope => 'bar', :foo => 'baz' }
|
35 |
| - subject.token_params['scope'].should eq('bar') |
36 |
| - subject.token_params['foo'].should eq('baz') |
| 35 | + expect(subject.token_params['scope']).to eq('bar') |
| 36 | + expect(subject.token_params['foo']).to eq('baz') |
37 | 37 | end
|
38 | 38 | end
|
39 | 39 | end
|
|
0 commit comments