mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 07:37:55 +08:00
remove redundent stubs
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user