spec/lib/rev/http_client_spec.rb in rev-api-1.0.2 vs spec/lib/rev/http_client_spec.rb in rev-api-1.0.3
- old
+ new
@@ -16,17 +16,17 @@
Rev::HttpClient.base_uri.must_equal 'https://localhost/api/v1'
end
it 'must include authorization and User-Agent headers for any request' do
host = 'www.example.com'
- stub_request(:any, host)
+ stub_request(:any, /www\.example\.com\/.*/)
client = Rev::HttpClient.new('foo', 'bar', host)
- client.get('/orders')
+ response = client.get('/orders')
assert_requested :get, "https://#{host}/api/v1/orders", :headers => {
'Authorization' => "Rev foo:bar",
'User-Agent' => Rev::HttpClient::USER_AGENT
}
- end
+ end
end