0.04571 seconds [Car Service] - should retrieve all cars Real HTTP connections are disabled. Unregistered request: GET http:// api.example.com/cars with headers {'Accept'=>'*/*; q=0.5, application/ xml', 'Accept-Encoding'=>'gzip, deflate', 'User-Agent'=>'Ruby'}You can stub this request with the following snippet:stub_request(:get, “http:// api.example.com/cars”). with(:headers => {'Accept'=>'*/*; q=0.5, application/xml', 'Accept-Encoding'=>'gzip, deflate', 'User- Agent'=>'Ruby'}). to_return(:status => 200, :body => "", :headers => {})