|
@ -10,7 +10,7 @@ describe FetchRemoteResourceService do |
|
|
url = 'http://example.com/missing-atom' |
|
|
url = 'http://example.com/missing-atom' |
|
|
service = double |
|
|
service = double |
|
|
allow(FetchAtomService).to receive(:new).and_return service |
|
|
allow(FetchAtomService).to receive(:new).and_return service |
|
|
allow(service).to receive(:call).with(url).and_return([nil, 'body']) |
|
|
|
|
|
|
|
|
allow(service).to receive(:call).with(url).and_return(nil) |
|
|
|
|
|
|
|
|
result = subject.call(url) |
|
|
result = subject.call(url) |
|
|
expect(result).to be_nil |
|
|
expect(result).to be_nil |
|
|