mirror of
https://github.com/samsonjs/instapaper.git
synced 2026-04-27 14:57:44 +00:00
update account endpoints to 1.1 paths
This commit is contained in:
parent
45c110f96d
commit
0b2e842dcf
2 changed files with 3 additions and 3 deletions
|
|
@ -6,7 +6,7 @@ module Instapaper
|
||||||
module Accounts
|
module Accounts
|
||||||
# Returns the currently logged in user.
|
# Returns the currently logged in user.
|
||||||
def verify_credentials
|
def verify_credentials
|
||||||
perform_post_with_object('/api/1/account/verify_credentials', {}, Instapaper::User)
|
perform_post_with_object('/api/1.1/account/verify_credentials', {}, Instapaper::User)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -5,13 +5,13 @@ describe Instapaper::Client::Accounts do
|
||||||
|
|
||||||
describe '#verify_credentials' do
|
describe '#verify_credentials' do
|
||||||
before do
|
before do
|
||||||
stub_post('/api/1/account/verify_credentials')
|
stub_post('/api/1.1/account/verify_credentials')
|
||||||
.to_return(body: fixture('verify_credentials.json'), headers: {content_type: 'application/json; charset=utf-8'})
|
.to_return(body: fixture('verify_credentials.json'), headers: {content_type: 'application/json; charset=utf-8'})
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'gets the correct resource' do
|
it 'gets the correct resource' do
|
||||||
client.verify_credentials
|
client.verify_credentials
|
||||||
expect(a_post('/api/1/account/verify_credentials'))
|
expect(a_post('/api/1.1/account/verify_credentials'))
|
||||||
.to have_been_made
|
.to have_been_made
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue