Sha256: af57a8b789ecb617c69e1eddabec1cf8993e3f7fd267a436588ca48e88656d6b

Contents?: true

Size: 402 Bytes

Versions: 32

Compression:

Stored size: 402 Bytes

Contents

require 'test_helper'

class TicketsBookingTest < Minitest::Test
  def tickets_booking
    Gillbus::TicketsBooking::Response.parse_string(File.read('test/responses/ticketsBooking.xml'))
  end

  def test_number
    assert_equal('8472', tickets_booking.tickets.first.ticket_number)
  end

  def test_total
    assert_equal(Money.new(110_00, 'UAH'), tickets_booking.tickets.first.total_amount)
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
gillbus-0.20.7 test/tickets_booking_test.rb
gillbus-0.20.6 test/tickets_booking_test.rb
gillbus-0.20.5 test/tickets_booking_test.rb
gillbus-0.20.4 test/tickets_booking_test.rb
gillbus-0.20.3 test/tickets_booking_test.rb
gillbus-0.20.2 test/tickets_booking_test.rb
gillbus-0.20.1 test/tickets_booking_test.rb
gillbus-0.20.0 test/tickets_booking_test.rb
gillbus-0.19.0 test/tickets_booking_test.rb
gillbus-0.18.14 test/tickets_booking_test.rb
gillbus-0.18.13 test/tickets_booking_test.rb
gillbus-0.18.12 test/tickets_booking_test.rb
gillbus-0.18.11 test/tickets_booking_test.rb
gillbus-0.18.10 test/tickets_booking_test.rb
gillbus-0.18.9 test/tickets_booking_test.rb
gillbus-0.18.8 test/tickets_booking_test.rb
gillbus-0.18.7 test/tickets_booking_test.rb
gillbus-0.18.6 test/tickets_booking_test.rb
gillbus-0.18.5 test/tickets_booking_test.rb
gillbus-0.18.4 test/tickets_booking_test.rb