spec/client_spec.rb in yammer-oauth2-0.2.0 vs spec/client_spec.rb in yammer-oauth2-0.3.0
- old
+ new
@@ -21,11 +21,11 @@
}
auth_url = subject.clientside_authorization_url
parsed_url = Addressable::URI.parse(auth_url)
- expect(parsed_url.path).to eq '/dialog/oauth/authorize'
+ expect(parsed_url.path).to eq '/dialogs/oauth'
expect(parsed_url.query_values).to eq params
expect(parsed_url.scheme).to eq 'https'
expect(parsed_url.host).to eq 'www.yammer.com'
end
end
@@ -44,11 +44,11 @@
:state => '12345',
:redirect_uri => 'https://localhost/callback'
)
parsed_url = Addressable::URI.parse(auth_url)
- expect(parsed_url.path).to eq '/dialog/oauth/authorize'
+ expect(parsed_url.path).to eq '/dialogs/oauth'
expect(parsed_url.query_values).to eq params
expect(parsed_url.scheme).to eq 'https'
expect(parsed_url.host).to eq 'www.yammer.com'
end
end
@@ -76,6 +76,6 @@
:redirect_uri => 'https://localhost'
}
)
end
end
-end
\ No newline at end of file
+end