spec/adapter_spec.rb in quicktravel_client-3.6.1 vs spec/adapter_spec.rb in quicktravel_client-3.7.0
- old
+ new
@@ -35,21 +35,21 @@
specify { expect(QuickTravel::Api).to have_received(:post).with(url, expected_params) }
end
context 'when response non standard' do
- let(:url) { 'http://www.google.com' }
+ let(:url) { 'https://httpstat.us/418' }
let(:adapter_response) {
VCR.use_cassette 'wrong_url' do
QuickTravel::Adapter.get_and_validate(url)
end
}
specify do
expect { adapter_response }.to raise_error(
QuickTravel::AdapterError,
- /That’s all we know/
+ /418 I'm a teapot/
)
end
end
end