test/unit/invoice_test.rb in xero_gateway-2.0.11 vs test/unit/invoice_test.rb in xero_gateway-2.0.12

- old
+ new

@@ -234,10 +234,15 @@ ["invalid", 100, nil, []].each do | invalid_object | assert_raise(XeroGateway::Invoice::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 + invoice = XeroGateway::Invoice.new + assert_equal(invoice.line_amount_types, 'Exclusive') + end private def create_test_invoice(invoice_params = {}, contact_params = {}, line_item_params = []) unless invoice_params.nil? @@ -297,6 +302,6 @@ end end invoice end -end \ No newline at end of file +end