mirror of
https://github.com/samsonjs/simple_oauth.git
synced 2026-03-25 08:45:54 +00:00
Test whether signed attributes contain a signature key.
This commit is contained in:
parent
c8790cf98e
commit
cd690a7d72
1 changed files with 5 additions and 0 deletions
|
|
@ -171,4 +171,9 @@ class SimpleOAuthTest < Test::Unit::TestCase
|
|||
header = SimpleOAuth::Header.new(:post, 'https://api.twitter.com/1/statuses/update.json', {:status => 'hi, again'}, options)
|
||||
assert_equal successful, header.to_s
|
||||
end
|
||||
|
||||
def test_signed_attributes
|
||||
header = SimpleOAuth::Header.new(:get, 'https://api.twitter.com/1/statuses/friends.json', {})
|
||||
assert header.send(:signed_attributes).keys.include?(:oauth_signature)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue