Skip to content
This repository
Browse code

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
... ... @@ -1 +0,0 @@
1   -{"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
@@ -440,7 +440,6 @@
440 440 end
441 441 context "when authenticated as someone else" do
442 442 before do
443   - stub_get("/1.1/account/verify_credentials.json").to_return(:body => fixture("nbraem.json"), :headers => {:content_type => "application/json; charset=utf-8"})
444 443 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"})
445 444 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"})
446 445 end
@@ -467,7 +466,6 @@
467 466 end
468 467 context "when authenticated as someone else" do
469 468 before do
470   - stub_get("/1.1/account/verify_credentials.json").to_return(:body => fixture("nbraem.json"), :headers => {:content_type => "application/json; charset=utf-8"})
471 469 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"})
472 470 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"})
473 471 end
@@ -514,7 +512,6 @@
514 512 end
515 513 context "when authenticated as someone else" do
516 514 before do
517   - stub_get("/1.1/account/verify_credentials.json").to_return(:body => fixture("nbraem.json"), :headers => {:content_type => "application/json; charset=utf-8"})
518 515 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"})
519 516 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"})
520 517 end
@@ -541,7 +538,6 @@
541 538 end
542 539 context "when authenticated as someone else" do
543 540 before do
544   - stub_get("/1.1/account/verify_credentials.json").to_return(:body => fixture("nbraem.json"), :headers => {:content_type => "application/json; charset=utf-8"})
545 541 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"})
546 542 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"})
547 543 end

0 comments on commit c8cc26d

Please sign in to comment.
Something went wrong with that request. Please try again.