test/unit/oauth_test.rb in xeroizer-2.17.1 vs test/unit/oauth_test.rb in xeroizer-2.18.1
- old
+ new
@@ -97,20 +97,20 @@
Xeroizer::OAuth.any_instance.stubs(:put).returns(stub(:plain_body => get_file_as_string("api_exception.xml"),
:code => "400"))
assert_raises Xeroizer::ApiException do
contact = @client.Contact.build(:name => 'Test Contact')
- contact.save
+ contact.save!
end
end
should "handle random root elements" do
Xeroizer::OAuth.any_instance.stubs(:put).returns(stub(:plain_body => "<RandomRootElement></RandomRootElement>",
:code => "200"))
assert_raises Xeroizer::UnparseableResponse do
contact = @client.Contact.build(:name => 'Test Contact')
- contact.save
+ contact.save!
end
end
end