spec/git_trend/scraper_spec.rb in git-trend-1.1.9 vs spec/git_trend/scraper_spec.rb in git-trend-1.2.0
- old
+ new
@@ -28,15 +28,7 @@
stub_request(:get, Scraper::BASE_URL)
.to_return(status: 500, body: "[]")
end
it { expect { scraper.get }.to raise_error(Exception) }
end
-
- context "when a scraping error occurred" do
- before do
- stub_request(:get, Scraper::BASE_URL)
- .to_return(status: 200, headers: { content_type: "text/html" }, body: "")
- end
- it { expect { scraper.get }.to raise_error(ScrapeException) }
- end
end
end