gillbus 0.20.2 → 0.20.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -69,6 +69,10 @@ class SearchTripsResponseTest < Minitest::Test
69
69
  Gillbus::SearchTrips::Response.parse_string(File.read('test/responses/searchTrips-insurance.xml'))
70
70
  end
71
71
 
72
+ def get_trips_with_round_trip_offers
73
+ Gillbus::SearchTrips::Response.parse_string(File.read('test/responses/searchTrips-round-trip-offers.xml'))
74
+ end
75
+
72
76
  def test_empty_completed
73
77
  response = get_empty_search_trips
74
78
  assert response.completed
@@ -294,4 +298,13 @@ class SearchTripsResponseTest < Minitest::Test
294
298
  assert_equal 1, tariff.insurance_id
295
299
  assert_equal '100000 RUB'.to_money, tariff.insurance_sum
296
300
  end
301
+
302
+ def test_trips_with_round_trip_offers
303
+ response = get_trips_with_round_trip_offers
304
+
305
+ assert response.completed
306
+ assert_equal 1, response.back_trips.count
307
+ assert_equal 3, response.trips.count
308
+ assert_equal response.back_trips.first.id, response.trips.first.id
309
+ end
297
310
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gillbus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.2
4
+ version: 0.20.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey "codesnik" Trofimenko
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-06-20 00:00:00.000000000 Z
12
+ date: 2019-06-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -272,6 +272,7 @@ files:
272
272
  - test/responses/searchTrips-new-options-format.xml
273
273
  - test/responses/searchTrips-prod-invalid.xml
274
274
  - test/responses/searchTrips-prod.xml
275
+ - test/responses/searchTrips-round-trip-offers.xml
275
276
  - test/responses/searchTrips-segments-roundtrip.xml
276
277
  - test/responses/searchTrips-segments.xml
277
278
  - test/responses/searchTripsNearby.xml
@@ -353,6 +354,7 @@ test_files:
353
354
  - test/responses/searchTrips-new-options-format.xml
354
355
  - test/responses/searchTrips-prod-invalid.xml
355
356
  - test/responses/searchTrips-prod.xml
357
+ - test/responses/searchTrips-round-trip-offers.xml
356
358
  - test/responses/searchTrips-segments-roundtrip.xml
357
359
  - test/responses/searchTrips-segments.xml
358
360
  - test/responses/searchTripsNearby.xml