test/unit/invoice_test.rb in xero_gateway-2.0.19 vs test/unit/invoice_test.rb in xero_gateway-2.1.0
- old
+ new
@@ -238,11 +238,12 @@
invoice = XeroGateway::Invoice.new
assert_equal(invoice.line_amount_types, 'Exclusive')
end
def test_optional_params
- invoice = create_test_invoice(:url => 'http://example.com')
+ invoice = create_test_invoice(:url => 'http://example.com', :branding_theme_id => 'a94a78db-5cc6-4e26-a52b-045237e56e6e')
assert_equal 'http://example.com', invoice.url
+ assert_equal 'a94a78db-5cc6-4e26-a52b-045237e56e6e', invoice.branding_theme_id
end
private
def create_test_invoice(invoice_params = {}, contact_params = {}, line_item_params = [])