Sha256: ac28b194655e34a874a190d1164f765d07b85a9cb1479e640a921cd278bb344f

Contents?: true

Size: 605 Bytes

Versions: 22

Compression:

Stored size: 605 Bytes

Contents

require 'test_helper'

class FindOrderTest < Minitest::Test

  def find_order
    Gillbus::FindOrder::Response.parse_string(File.read('test/responses/findOrder.xml'))
  end

  def test_number
    assert_equal("14482", find_order.tickets.first.ticket_number)
  end

  def test_total
    assert_equal(Money.new(20_46, 'UAH'), find_order.tickets.first.total_amount)
  end

  def test_status
    assert_equal(:ticketed, find_order.tickets.first.ticket_status)
  end

  def test_return_causes
    assert_equal(Money.new(20_38, 'UAH'), find_order.tickets.first.return_causes.first.approximate_amount)
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
gillbus-0.15.5 test/find_order_test.rb
gillbus-0.15.4 test/find_order_test.rb
gillbus-0.15.3 test/find_order_test.rb
gillbus-0.15.2 test/find_order_test.rb
gillbus-0.15.1 test/find_order_test.rb
gillbus-0.15.0 test/find_order_test.rb
gillbus-0.14.12 test/find_order_test.rb
gillbus-0.14.11 test/find_order_test.rb
gillbus-0.14.10 test/find_order_test.rb
gillbus-0.14.9 test/find_order_test.rb
gillbus-0.14.8 test/find_order_test.rb
gillbus-0.14.7 test/find_order_test.rb
gillbus-0.14.6 test/find_order_test.rb
gillbus-0.14.5 test/find_order_test.rb
gillbus-0.14.4 test/find_order_test.rb
gillbus-0.14.3 test/find_order_test.rb
gillbus-0.14.2 test/find_order_test.rb
gillbus-0.14.1 test/find_order_test.rb
gillbus-0.14.0 test/find_order_test.rb
gillbus-0.13.0 test/find_order_test.rb