Sha256: 91b410c22dc0777267bcfdc216615c82f27989bde9fbdb60c8d07efe9662218e

Contents?: true

Size: 403 Bytes

Versions: 31

Compression:

Stored size: 403 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

31 entries across 31 versions & 1 rubygems

Version Path
gillbus-0.16.7 test/tickets_booking_test.rb
gillbus-0.16.6 test/tickets_booking_test.rb
gillbus-0.16.5 test/tickets_booking_test.rb
gillbus-0.16.4 test/tickets_booking_test.rb
gillbus-0.16.3 test/tickets_booking_test.rb
gillbus-0.16.2 test/tickets_booking_test.rb
gillbus-0.16.1 test/tickets_booking_test.rb
gillbus-0.15.7 test/tickets_booking_test.rb
gillbus-0.15.6 test/tickets_booking_test.rb
gillbus-0.15.5 test/tickets_booking_test.rb
gillbus-0.15.4 test/tickets_booking_test.rb
gillbus-0.15.3 test/tickets_booking_test.rb
gillbus-0.15.2 test/tickets_booking_test.rb
gillbus-0.15.1 test/tickets_booking_test.rb
gillbus-0.15.0 test/tickets_booking_test.rb
gillbus-0.14.12 test/tickets_booking_test.rb
gillbus-0.14.11 test/tickets_booking_test.rb
gillbus-0.14.10 test/tickets_booking_test.rb
gillbus-0.14.9 test/tickets_booking_test.rb
gillbus-0.14.8 test/tickets_booking_test.rb