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.18.12 test/get_trip_segments_test.rb
gillbus-0.18.11 test/get_trip_segments_test.rb
gillbus-0.18.10 test/get_trip_segments_test.rb
gillbus-0.18.9 test/get_trip_segments_test.rb
gillbus-0.18.8 test/get_trip_segments_test.rb
gillbus-0.18.7 test/get_trip_segments_test.rb
gillbus-0.18.6 test/get_trip_segments_test.rb
gillbus-0.18.5 test/get_trip_segments_test.rb
gillbus-0.18.4 test/get_trip_segments_test.rb
gillbus-0.18.3 test/get_trip_segments_test.rb
gillbus-0.18.2 test/get_trip_segments_test.rb
gillbus-0.18.1 test/get_trip_segments_test.rb
gillbus-0.17.6 test/get_trip_segments_test.rb
gillbus-0.17.5 test/get_trip_segments_test.rb
gillbus-0.17.4 test/get_trip_segments_test.rb
gillbus-0.17.3 test/get_trip_segments_test.rb
gillbus-0.17.2 test/get_trip_segments_test.rb
gillbus-0.17.1 test/get_trip_segments_test.rb
gillbus-0.16.10 test/get_trip_segments_test.rb
gillbus-0.16.9 test/get_trip_segments_test.rb