From 1dd2b510591f62e2bde599cfe4ccc49fdcf96aff Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 18 Oct 2017 12:06:47 +1100 Subject: [PATCH] remove redundent stubs --- spec/components/final_destination_spec.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/spec/components/final_destination_spec.rb b/spec/components/final_destination_spec.rb index 6599f38d0d..93b6f061d2 100644 --- a/spec/components/final_destination_spec.rb +++ b/spec/components/final_destination_spec.rb @@ -318,13 +318,11 @@ describe FinalDestination do .to_return(status: 302, body: "", headers: { location: 'https://wikipedia.com/image.png' }) stub_request(:head, "https://wikipedia.com/image.png") .to_return(status: 200, body: "", headers: []) - stub_request(:get, "https://wikipedia.com/image.png").to_return(status: 200, body: "", headers: {}) fd('http://wikipedia.com/image.png').resolve stub_request(:head, "https://wikipedia.com/image2.png") .to_return(status: 200, body: "", headers: []) - stub_request(:get, "https://wikipedia.com/image2.png").to_return(status: 200, body: "", headers: {}) fd('http://wikipedia.com/image2.png').resolve end