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.16.7 test/reserve_tickets_test.rb
gillbus-0.16.6 test/reserve_tickets_test.rb
gillbus-0.16.5 test/reserve_tickets_test.rb
gillbus-0.16.4 test/reserve_tickets_test.rb
gillbus-0.16.3 test/reserve_tickets_test.rb
gillbus-0.16.2 test/reserve_tickets_test.rb
gillbus-0.16.1 test/reserve_tickets_test.rb
gillbus-0.15.7 test/reserve_tickets_test.rb
gillbus-0.15.6 test/reserve_tickets_test.rb
gillbus-0.15.5 test/reserve_tickets_test.rb
gillbus-0.15.4 test/reserve_tickets_test.rb
gillbus-0.15.3 test/reserve_tickets_test.rb
gillbus-0.15.2 test/reserve_tickets_test.rb
gillbus-0.15.1 test/reserve_tickets_test.rb
gillbus-0.15.0 test/reserve_tickets_test.rb
gillbus-0.14.12 test/reserve_tickets_test.rb
gillbus-0.14.11 test/reserve_tickets_test.rb
gillbus-0.14.10 test/reserve_tickets_test.rb
gillbus-0.14.9 test/reserve_tickets_test.rb
gillbus-0.14.8 test/reserve_tickets_test.rb