update account endpoints to 1.1 paths

This commit is contained in:
stve 2015-10-06 23:23:51 -04:00
parent 45c110f96d
commit 0b2e842dcf
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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