mirror of
https://github.com/samsonjs/instapaper.git
synced 2026-03-25 08:55:49 +00:00
fix deprecations
This commit is contained in:
parent
231dbf0021
commit
da3498ac38
2 changed files with 5 additions and 5 deletions
|
|
@ -22,14 +22,14 @@ describe Instapaper::Client::User do
|
|||
it "should return the a hash containing an oauth token and secret" do
|
||||
tokens = @client.access_token('ohai', 'p455w0rd')
|
||||
tokens.should be_a Hash
|
||||
tokens.key?('oauth_token').should be_true
|
||||
tokens.key?('oauth_token_secret').should be_true
|
||||
tokens.key?('oauth_token').should be true
|
||||
tokens.key?('oauth_token_secret').should be true
|
||||
end
|
||||
|
||||
it "should return a hash containing the error on invalid credentials" do
|
||||
tokens = @client.access_token('inval1d', 'cr3dentials')
|
||||
tokens.should be_a Hash
|
||||
tokens.key?('error').should be_true
|
||||
tokens.key?('error').should be true
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ describe Instapaper do
|
|||
|
||||
describe '.respond_to?' do
|
||||
it 'takes an optional include private argument' do
|
||||
Instapaper.respond_to?(:client, true).should be_true
|
||||
Instapaper.respond_to?(:client, true).should be true
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -82,4 +82,4 @@ describe Instapaper do
|
|||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue