spec/services/landable/screenshot_service_spec.rb in landable-1.13.1 vs spec/services/landable/screenshot_service_spec.rb in landable-1.13.2
- old
+ new
@@ -14,19 +14,19 @@
context 'with configured publicist url' do
let(:publicist_url) { 'http://publicist.foo/' }
it 'should return a file pointer to the downloaded screenshot' do
Net::HTTP.should_receive(:post_form) do |uri, params|
- uri.to_s.should == 'http://publicist.foo/api/services/screenshots'
- params.should == {'screenshot[url]' => screenshot_url}
+ uri.to_s.should eq 'http://publicist.foo/api/services/screenshots'
+ params.should eq('screenshot[url]' => screenshot_url)
double('response', code: '200', content_type: 'image/png', body: screenshot_content)
end
screenshot = ScreenshotService.capture screenshot_url
screenshot.should be_a Tempfile
- screenshot.read.should == screenshot_content
+ screenshot.read.should eq screenshot_content
end
end
context 'without configured publicist url' do
it 'should return nil with a warning' do