mirror of
https://github.com/samsonjs/simple_oauth.git
synced 2026-04-27 14:57:45 +00:00
Fix specs on JRuby
This commit is contained in:
parent
987239fefe
commit
9c55f41af1
1 changed files with 1 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ describe SimpleOAuth::Header do
|
||||||
secrets = {:consumer_secret => rsa_private_key}
|
secrets = {:consumer_secret => rsa_private_key}
|
||||||
header = SimpleOAuth::Header.new(:get, 'https://api.twitter.com/1/statuses/friends.json', {}, secrets.merge(:signature_method => 'RSA-SHA1'))
|
header = SimpleOAuth::Header.new(:get, 'https://api.twitter.com/1/statuses/friends.json', {}, secrets.merge(:signature_method => 'RSA-SHA1'))
|
||||||
parsed_header = SimpleOAuth::Header.new(:get, 'https://api.twitter.com/1/statuses/friends.json', {}, header)
|
parsed_header = SimpleOAuth::Header.new(:get, 'https://api.twitter.com/1/statuses/friends.json', {}, header)
|
||||||
expect { parsed_header.valid? }.to raise_error(TypeError)
|
expect { parsed_header.valid? }.to raise_error
|
||||||
expect(parsed_header).to be_valid(secrets)
|
expect(parsed_header).to be_valid(secrets)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue