spec/api-client/parser_spec.rb in api-client-1.8.2 vs spec/api-client/parser_spec.rb in api-client-1.9.0
- old
+ new
@@ -52,10 +52,10 @@
stub_request(:get, "http://api.example.com/user/5").to_return(:status => 404)
@response = ApiClient::Dispatcher.get('http://api.example.com/user/5')
end
it "should return a NotFound exception" do
- lambda { ApiClient::Parser.response(@response) }.should raise_error(ApiClient::Exceptions::NotFound)
+ lambda { ApiClient::Parser.response(@response) }.should raise_error(ApiClient::Exceptions::NotFound, "http://api.example.com/user/5")
end
end
context "500" do
before :each do