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

Version Path
gillbus-0.14.7 test/reserve_tickets_test.rb
gillbus-0.14.6 test/reserve_tickets_test.rb
gillbus-0.14.5 test/reserve_tickets_test.rb
gillbus-0.14.4 test/reserve_tickets_test.rb
gillbus-0.14.3 test/reserve_tickets_test.rb
gillbus-0.14.2 test/reserve_tickets_test.rb
gillbus-0.14.1 test/reserve_tickets_test.rb
gillbus-0.14.0 test/reserve_tickets_test.rb
gillbus-0.13.0 test/reserve_tickets_test.rb
gillbus-0.12.0 test/reserve_tickets_test.rb
gillbus-0.11.0 test/reserve_tickets_test.rb