From cd690a7d72eca5cb7888e2478cba9764de43334a Mon Sep 17 00:00:00 2001 From: laserlemon Date: Mon, 11 Oct 2010 17:38:27 -0400 Subject: [PATCH] Test whether signed attributes contain a signature key. --- test/simple_oauth_test.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/simple_oauth_test.rb b/test/simple_oauth_test.rb index cdcbf2a..2d69e19 100644 --- a/test/simple_oauth_test.rb +++ b/test/simple_oauth_test.rb @@ -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