mirror of
https://github.com/samsonjs/simple_oauth.git
synced 2026-03-25 08:45:54 +00:00
Test the SimpleOAuth::Header#to_s method.
This commit is contained in:
parent
c86b8cbeb9
commit
597350d998
1 changed files with 5 additions and 0 deletions
|
|
@ -189,4 +189,9 @@ class SimpleOAuthTest < Test::Unit::TestCase
|
|||
header.stubs(:signed_attributes).returns(1 => '!', 2 => '@', 3 => '#', 4 => '$')
|
||||
assert_equal '1="%21", 2="%40", 3="%23", 4="%24"', header.send(:normalized_attributes)
|
||||
end
|
||||
|
||||
def test_to_s
|
||||
header = SimpleOAuth::Header.new(:get, 'https://api.twitter.com/1/statuses/friends.json', {})
|
||||
assert_equal "OAuth #{header.send(:normalized_attributes)}", header.to_s
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue