Sha256: 812d335a063ec98100ee15f1bfcedf1351f79da5423be855557e9ef62ea6a56e
Contents?: true
Size: 602 Bytes
Versions: 25
Compression:
Stored size: 602 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) assert_equal(1055, points.last.distance) end end
Version data entries
25 entries across 25 versions & 1 rubygems