Skip to content

Commit

Permalink
Bumped httparty version to 0.4.3 which allows response.message and fi…
Browse files Browse the repository at this point in the history
…xes errors that the lack of response.message was causing to the twitter gem
  • Loading branch information
jnunemaker committed Apr 23, 2009
1 parent e3724ec commit a630b1c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions History
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/twitter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion test/twitter/httpauth_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit a630b1c

Please sign in to comment.