test/unit/invoice_test.rb in xero_gateway-2.0.14 vs test/unit/invoice_test.rb in xero_gateway-2.0.15

- old
+ new

@@ -227,10 +227,10 @@ assert_equal(line_item_params[:unit_amount], line_item.unit_amount) assert_equal(2, invoice.line_items.size) # Test that pushing anything else into add_line_item fails. ["invalid", 100, nil, []].each do | invalid_object | - assert_raise(XeroGateway::Invoice::InvalidLineItemError) { invoice.add_line_item(invalid_object) } + assert_raise(XeroGateway::InvalidLineItemError) { invoice.add_line_item(invalid_object) } assert_equal(2, invoice.line_items.size) end end def test_instantiate_invoice_with_default_line_amount_types