Sha256: 4eff24871c00f4f682dae44692b216aebe3f94e2c6af3025933dedf455a420f3

Contents?: true

Size: 557 Bytes

Versions: 21

Compression:

Stored size: 557 Bytes

Contents

require 'test_helper'

class GetTripSegmentsTest < Minitest::Test
  def get_trip_segments
    Gillbus::GetTripSegments::Response.parse_string(File.read('test/responses/getTripSegments.xml'))
  end

  def test_get_trip_segments
    points = get_trip_segments.points

    assert_equal(13, points.size)
    assert_equal('Львов', points.first.geography_name)
    assert_equal('Ж/Д вокзал Львів', points.first.name)
    assert_equal('Щецин', points.last.geography_name)
    assert_equal('Автовокзал', points.last.name)
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
gillbus-0.16.8 test/get_trip_segments_test.rb