mirror of
https://github.com/samsonjs/instapaper.git
synced 2026-03-25 08:55:49 +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
|
||||
# Returns the currently logged in user.
|
||||
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
|
||||
|
|
|
|||
|
|
@ -5,13 +5,13 @@ describe Instapaper::Client::Accounts do
|
|||
|
||||
describe '#verify_credentials' 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'})
|
||||
end
|
||||
|
||||
it 'gets the correct resource' do
|
||||
client.verify_credentials
|
||||
expect(a_post('/api/1/account/verify_credentials'))
|
||||
expect(a_post('/api/1.1/account/verify_credentials'))
|
||||
.to have_been_made
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue