Sha256: d32ae797471eb2e70aa0f14c9726137e9d9f2e11a56812f36460cbba35c72a4d

Contents?: true

Size: 568 Bytes

Versions: 30

Compression:

Stored size: 568 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

30 entries across 30 versions & 1 rubygems

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