spec/omniauth/strategies/line_spec.rb in omniauth-line-0.0.2 vs spec/omniauth/strategies/line_spec.rb in omniauth-line-0.0.3
- old
+ new
@@ -20,15 +20,15 @@
it 'should have correct site' do
expect(subject.options.client_options.site).to eq('https://access.line.me')
end
it 'should have correct authorize url' do
- expect(subject.options.client_options.authorize_url).to eq('/dialog/oauth/weblogin')
+ expect(subject.options.client_options.authorize_url).to eq('/oauth2/v2.1/authorize')
end
it 'should have correct token url' do
- expect(subject.options.client_options.token_url).to eq('/v1/oauth/accessToken')
+ expect(subject.options.client_options.token_url).to eq('/oauth2/v2.1/token')
end
end
describe 'uid' do
before do
@@ -77,10 +77,10 @@
private
def raw_info_hash
{
- 'mid' => 'hoge',
+ 'uid' => 'hoge',
'displayName' => 'Foo Bar',
'pictureUrl' => 'http://xxx.com/aaa.jpg',
'statusMessage' => 'Developer'
}
end