fix deprecations

This commit is contained in:
stve 2015-02-09 00:15:04 -05:00
parent 231dbf0021
commit da3498ac38
2 changed files with 5 additions and 5 deletions

View file

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

View file

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