diff --git a/History b/History index 43fdcff7f..e207c44b3 100644 --- a/History +++ b/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 diff --git a/lib/twitter/base.rb b/lib/twitter/base.rb index e3a543d86..3c647aff7 100644 --- a/lib/twitter/base.rb +++ b/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) diff --git a/test/twitter/base_test.rb b/test/twitter/base_test.rb index ad613246b..bcb776309 100644 --- a/test/twitter/base_test.rb +++ b/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