Skip to content

Commit 94f9e59

Browse files
committed
Add test
1 parent d63ae0b commit 94f9e59

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/invoice_test.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,5 +588,12 @@ def test_negative_de_invoice_against_schematron_2
588588
end
589589
assert_equal [], errors
590590
end
591+
592+
def test_invoice_object_extensions
593+
invoice = make_de_invoice
594+
xml = invoice.to_xml(version: 2)
595+
596+
assert_match(/<ram:PaymentReference>#{invoice.payment_reference}<\/ram:PaymentReference>/, xml)
597+
end
591598
end
592599
end

0 commit comments

Comments
 (0)