rename oauth fixtures

This commit is contained in:
stve 2015-02-25 22:25:33 -05:00
parent 9c2babc55f
commit 76b09b30ae
3 changed files with 2 additions and 2 deletions

View file

@ -6,9 +6,9 @@ describe Instapaper::Client::OAuth do
describe '#token' do
before do
stub_post('/api/1/oauth/access_token').with(body: {x_auth_username: 'ohai', x_auth_password: 'p455w0rd', x_auth_mode: 'client_auth'})
.to_return(body: fixture('access_token.qline'), headers: {content_type: 'text/plain; charset=utf-8'})
.to_return(body: fixture('access_token.txt'), headers: {content_type: 'text/plain; charset=utf-8'})
stub_post('/api/1/oauth/access_token').with(body: {x_auth_username: 'inval1d', x_auth_password: 'cr3dentials', x_auth_mode: 'client_auth'})
.to_return(body: fixture('invalid_credentials.qline'), headers: {content_type: 'text/plain; charset=utf-8'})
.to_return(body: fixture('invalid_credentials.txt'), headers: {content_type: 'text/plain; charset=utf-8'})
end
it 'gets the correct resource' do