mirror of
https://github.com/samsonjs/instapaper.git
synced 2026-03-25 08:55:49 +00:00
rename oauth fixtures
This commit is contained in:
parent
9c2babc55f
commit
76b09b30ae
3 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue