spec/omniauth/strategies/tanmer_spec.rb in omniauth-tanmer-1.0.3 vs spec/omniauth/strategies/tanmer_spec.rb in omniauth-tanmer-1.0.4

- old
+ new

@@ -30,11 +30,11 @@ describe 'client options' do context 'with defaults' do subject { tanmer_service.options.client_options } - its(:site) { is_expected.to eq 'https://login.tanmer.com' } + its(:site) { is_expected.to eq 'https://account.tanmer.com' } its(:authorize_url) { is_expected.to eq '/oauth/authorize' } its(:token_url) { is_expected.to eq '/oauth/token' } end context 'with override' do @@ -58,10 +58,10 @@ end end describe '#raw_info' do it 'sent request to current user endpoint' do - expect(access_token).to receive(:get).with('/api/v1/user').and_return(response) + expect(access_token).to receive(:get).with('/api/v1/users/profile').and_return(response) expect(subject.raw_info).to eq(parsed_response) end end end