spec/omniauth/strategies/untappd_spec.rb in omniauth-untappd-0.1.1 vs spec/omniauth/strategies/untappd_spec.rb in omniauth-untappd-0.1.3
- old
+ new
@@ -10,11 +10,11 @@
'user' => {
'id' => '123',
'first_name' => 'John',
'last_name' => 'Doe',
'user_name' => 'john_doe',
- 'untappd_url' => 'http://untappd.com/user/john_doe',
+ 'untappd_url' => 'https://untappd.com/user/john_doe',
'settings' => {
'email_address' => 'john@doe'
}
}
}}}
@@ -60,11 +60,11 @@
context '#raw_info' do
subject { strategy.raw_info }
let(:access_token) { double('AccessToken', options: {}) }
let(:response) { double('Response', parsed: parsed_response) }
- let(:user_info_url) { 'http://api.untappd.com/v4/user/info' }
+ let(:user_info_url) { 'https://api.untappd.com/v4/user/info' }
before { strategy.stub(access_token: access_token) }
before { expect(access_token).to receive(:get).with(user_info_url).and_return(response) }
it { should eql(parsed_response['response']['user']) }
@@ -79,10 +79,10 @@
subject(:info) { strategy.info }
it { expect(info[:name]).to eql 'John Doe' }
it { expect(info[:nickname]).to eql 'john_doe' }
it { expect(info[:email]).to eql 'john@doe' }
- it { expect(info[:urls]['Untappd']).to eql 'http://untappd.com/user/john_doe' }
+ it { expect(info[:urls]['Untappd']).to eql 'https://untappd.com/user/john_doe' }
end
context '#extra' do
it { expect(strategy.extra[:raw_info]).to eql strategy.raw_info }
end