Sha256: de398e8aed901af5897d65fe724668f06b4f0f5190c24ae06ffe7ed83a8178af
Contents?: true
Size: 552 Bytes
Versions: 31
Compression:
Stored size: 552 Bytes
Contents
require 'test_helper' require 'pry' class ReserveTicketsTest < Minitest::Test def reserve_tickets Gillbus::ReserveTickets::Response.parse_string(File.read('test/responses/reserveTickets.xml')) end def test_number assert_equal("8472", reserve_tickets.tickets.first.ticket_number) end def test_total assert_equal(Money.new(110_00, "UAH"), reserve_tickets.tickets.first.total_amount) end def test_date_to_pay assert_equal(DateTime.new(2013, 5, 22, 20, 30, 0, '+3'), reserve_tickets.tickets.first.date_to_pay) end end
Version data entries
31 entries across 31 versions & 1 rubygems