Sha256: 4c0dd989930fd97ce8a677d924518086b9b8295972078c8b2a5cbb9512b51475
Contents?: true
Size: 805 Bytes
Versions: 1
Compression:
Stored size: 805 Bytes
Contents
require 'test_helper' class FindOrderTest < Minitest::Test def find_order Gillbus::FindOrder::Response.parse_string(File.read('test/responses/findOrder.xml')) end def test_number assert_equal("14482", find_order.tickets.first.ticket_number) end def test_total assert_equal(Money.new(20_46, 'UAH'), find_order.tickets.first.total_amount) end def test_status assert_equal(:ticketed, find_order.tickets.first.ticket_status) end def test_return_causes assert_equal(Money.new(20_38, 'UAH'), find_order.tickets.first.return_causes.first.approximate_amount) end def test_comission_vat_value assert_equal("18", find_order.tickets.last.commissions.first.vat_value) end def test_vat_value assert_equal("0", find_order.tickets.first.vat_value) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gillbus-0.15.7 | test/find_order_test.rb |