Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed list_remove_member bug when using OAuth

  • Loading branch information...
commit b20b770af3d6594f8e551cade3cfbd58a0647c2d 1 parent 9bf9418
Wynn Netherland authored
Showing with 4 additions and 2 deletions.
  1. +2 −0  History
  2. +1 −1  lib/twitter/base.rb
  3. +1 −1  test/twitter/base_test.rb
View
2  History
@@ -1,3 +1,5 @@
+0.7.7 - November 29, 2009
+ * Fixed bug when removing list members using OAuth
0.7.6 - November 25, 2009
* Patch from coderifous for home_timeline support
0.7.5 - November 17, 2009
View
2  lib/twitter/base.rb
@@ -216,7 +216,7 @@ def list_add_member(list_owner_username, slug, new_id)
end
def list_remove_member(list_owner_username, slug, id)
- perform_delete("/#{list_owner_username}/#{slug}/members.json", :body => {:id => id})
+ perform_delete("/#{list_owner_username}/#{slug}/members.json", :query => {:id => id})
end
def is_list_member?(list_owner_username, slug, id)
View
2  test/twitter/base_test.rb
@@ -187,7 +187,7 @@ class BaseTest < Test::Unit::TestCase
end
should "be able to remove a member from a list" do
- stub_delete('/pengwynn/rubyists/members.json', 'user.json')
+ stub_delete('/pengwynn/rubyists/members.json?id=4243', 'user.json')
user = @twitter.list_remove_member('pengwynn', 'rubyists', 4243)
user.screen_name.should == 'jnunemaker'
end
Please sign in to comment.
Something went wrong with that request. Please try again.