Skip to content

Instantly share code, notes, and snippets.

@tibbon
Created November 29, 2012 22:23
Show Gist options
  • Select an option

  • Save tibbon/4172304 to your computer and use it in GitHub Desktop.

Select an option

Save tibbon/4172304 to your computer and use it in GitHub Desktop.
Twitter Gem attempted Test, which is failing
describe "#friends" do
context "with a screen_name passed" do
before do
stub_get("/1.1/friends/list.json").with(:query => {:cursor => "-1", :screen_name => "sferik"}).to_return(:body => fixture("friends_list.json"), :headers => {:content_type => "application/json; charset=utf-8"})
end
it "requests the correct resource" do
@client.friends("sferik")
expect(a_get("/1.1/friends/list.json").with(:query => {:cursor => "-1", :screen_name => "sferik"})).to have_been_made
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment