From a630b1c77792641794745d2f3cbba6c64d168d62 Mon Sep 17 00:00:00 2001 From: John Nunemaker Date: Thu, 23 Apr 2009 11:39:18 -0400 Subject: [PATCH] Bumped httparty version to 0.4.3 which allows response.message and fixes errors that the lack of response.message was causing to the twitter gem --- History | 4 ++++ lib/twitter.rb | 2 +- test/twitter/httpauth_test.rb | 8 +++++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/History b/History index 076c7d6de..f8c6b58e0 100644 --- a/History +++ b/History @@ -1,3 +1,7 @@ +0.6.7 - April 23, 2009 +* 1 minor fix + * Bumped httparty version to 0.4.3 which allows response.message and fixes errors that the lack of response.message was causing to the twitter gem + 0.6.6 - April 16, 2009 * 1 minor enhancement * added ability to pass query parameters to user method diff --git a/lib/twitter.rb b/lib/twitter.rb index dba53b6c9..6881104f1 100644 --- a/lib/twitter.rb +++ b/lib/twitter.rb @@ -7,7 +7,7 @@ gem 'mash', '0.0.3' require 'mash' -gem 'httparty', '0.4.2' +gem 'httparty', '0.4.3' require 'httparty' module Twitter diff --git a/test/twitter/httpauth_test.rb b/test/twitter/httpauth_test.rb index 818636874..8ce14164d 100644 --- a/test/twitter/httpauth_test.rb +++ b/test/twitter/httpauth_test.rb @@ -33,7 +33,13 @@ class HTTPAuthTest < Test::Unit::TestCase setup do @twitter = Twitter::HTTPAuth.new('username', 'password') end - + + should "not throw error when accessing response message" do + stub_get('http://twitter.com:80/statuses/user_timeline.json', 'user_timeline.json') + response = @twitter.get('/statuses/user_timeline.json') + response.message.should == 'OK' + end + should "be able to get" do stub_get('http://twitter.com:80/statuses/user_timeline.json', 'user_timeline.json') response = @twitter.get('/statuses/user_timeline.json')