Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't stub request that never gets called

  • Loading branch information...
commit c8cc26d5523bf8b0c040a7fda63969e66a55a52e 1 parent 316d319
Erik Michaels-Ober authored
1  spec/fixtures/nbraem.json
View
@@ -1 +0,0 @@
-{"id":16234978,"id_str":"16234978","name":"Nicolas Braem","screen_name":"nbraem","location":"Belgium","description":null,"url":null,"entities":{"description":{"urls":[]}},"protected":false,"followers_count":103,"friends_count":194,"listed_count":0,"created_at":"Thu Sep 11 05:44:01 +0000 2008","favourites_count":10,"utc_offset":-28800,"time_zone":"Pacific Time (US & Canada)","geo_enabled":true,"verified":false,"statuses_count":420,"lang":"en","status":{"created_at":"Thu Dec 20 09:36:54 +0000 2012","id":281694656159416322,"id_str":"281694656159416322","text":"@tompeej daar kan ik maar 1 ding op zeggen: http://t.co/ZrZCS2G6","source":"web","truncated":false,"in_reply_to_status_id":279704432663486465,"in_reply_to_status_id_str":"279704432663486465","in_reply_to_user_id":16823456,"in_reply_to_user_id_str":"16823456","in_reply_to_screen_name":"tompeej","geo":null,"coordinates":null,"place":null,"contributors":null,"retweet_count":0,"entities":{"hashtags":[],"urls":[],"user_mentions":[]},"favorited":false,"retweeted":false},"contributors_enabled":false,"is_translator":false,"profile_background_color":"000000","profile_background_image_url":"http:\/\/a0.twimg.com\/profile_background_images\/665875854\/bb0b3653dcf0644e344823e0a2eb3382.png","profile_background_image_url_https":"https:\/\/si0.twimg.com\/profile_background_images\/665875854\/bb0b3653dcf0644e344823e0a2eb3382.png","profile_background_tile":false,"profile_image_url":"http:\/\/a0.twimg.com\/profile_images\/1759857427\/image1326743606_normal.png","profile_image_url_https":"https:\/\/si0.twimg.com\/profile_images\/1759857427\/image1326743606_normal.png","profile_banner_url":"https:\/\/si0.twimg.com\/profile_banners\/7505382\/1348266581","profile_link_color":"0084B4","profile_sidebar_border_color":"000000","profile_sidebar_fill_color":"DDEEF6","profile_text_color":"333333","profile_use_background_image":true,"default_profile":false,"default_profile_image":false,"following":false,"follow_request_sent":false,"notifications":false}
4 spec/twitter/api/friends_and_followers_spec.rb
View
@@ -440,7 +440,6 @@
end
context "when authenticated as someone else" do
before do
- stub_get("/1.1/account/verify_credentials.json").to_return(:body => fixture("nbraem.json"), :headers => {:content_type => "application/json; charset=utf-8"})
stub_get("/1.1/followers/list.json").with(:query => {:cursor => "-1", :screen_name => "sferik"}).to_return(:body => fixture("followers_list.json"), :headers => {:content_type => "application/json; charset=utf-8"})
stub_get("/1.1/followers/list.json").with(:query => {:cursor => "1419103567112105362", :screen_name => "sferik"}).to_return(:body => fixture("followers_list2.json"), :headers => {:content_type => "application/json; charset=utf-8"})
end
@@ -467,7 +466,6 @@
end
context "when authenticated as someone else" do
before do
- stub_get("/1.1/account/verify_credentials.json").to_return(:body => fixture("nbraem.json"), :headers => {:content_type => "application/json; charset=utf-8"})
stub_get("/1.1/followers/list.json").with(:query => {:cursor => "-1", :user_id => "14100886"}).to_return(:body => fixture("followers_list.json"), :headers => {:content_type => "application/json; charset=utf-8"})
stub_get("/1.1/followers/list.json").with(:query => {:cursor => "1419103567112105362", :user_id => "14100886"}).to_return(:body => fixture("followers_list2.json"), :headers => {:content_type => "application/json; charset=utf-8"})
end
@@ -514,7 +512,6 @@
end
context "when authenticated as someone else" do
before do
- stub_get("/1.1/account/verify_credentials.json").to_return(:body => fixture("nbraem.json"), :headers => {:content_type => "application/json; charset=utf-8"})
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"})
stub_get("/1.1/friends/list.json").with(:query => {:cursor => "1418947360875712729", :screen_name => "sferik"}).to_return(:body => fixture("friends_list2.json"), :headers => {:content_type => "application/json; charset=utf-8"})
end
@@ -541,7 +538,6 @@
end
context "when authenticated as someone else" do
before do
- stub_get("/1.1/account/verify_credentials.json").to_return(:body => fixture("nbraem.json"), :headers => {:content_type => "application/json; charset=utf-8"})
stub_get("/1.1/friends/list.json").with(:query => {:cursor => "-1", :user_id => "14100886"}).to_return(:body => fixture("friends_list.json"), :headers => {:content_type => "application/json; charset=utf-8"})
stub_get("/1.1/friends/list.json").with(:query => {:cursor => "1418947360875712729", :user_id => "14100886"}).to_return(:body => fixture("friends_list2.json"), :headers => {:content_type => "application/json; charset=utf-8"})
end
Please sign in to comment.
Something went wrong with that request. Please try again.