spec/git_trend/scraper_spec.rb in git-trend-0.0.7 vs spec/git_trend/scraper_spec.rb in git-trend-0.0.8
- old
+ new
@@ -17,12 +17,12 @@
describe '#get' do
context 'when a network error occurred' do
before do
@scraper = Scraper.new
- stub_request(:get, Scraper::BASE_URL).
- to_return(:status => 500, :body => '[]')
+ stub_request(:get, Scraper::BASE_URL)
+ .to_return(status: 500, body: '[]')
end
- it { expect{ @scraper.get }.to raise_error(Exception) }
+ it { expect { @scraper.get }.to raise_error(Exception) }
end
end
end