diff options
| author | Teddy Wing | 2017-05-31 17:50:45 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-05-31 17:57:46 +0200 |
| commit | cdc3a394465c6041e0778023078e802a60abc6cd (patch) | |
| tree | f4b79036c59bd17fa5edf47fcf8280b59c132c1e | |
| parent | b9384b6f8b80cd53f0071b51a7b234bbf23fe499 (diff) | |
| download | chouette-core-cdc3a394465c6041e0778023078e802a60abc6cd.tar.bz2 | |
vehicle_journey_at_stops_day_offset_spec.rb: Remove offset field default
Thanks to b9384b6f8b80cd53f0071b51a7b234bbf23fe499, we now have a
default of `0` on these fields, so we no longer need to specify them
manually when building our test objects.
Refs #3596
| -rw-r--r-- | spec/models/chouette/vehicle_journey_at_stops_day_offset_spec.rb | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/spec/models/chouette/vehicle_journey_at_stops_day_offset_spec.rb b/spec/models/chouette/vehicle_journey_at_stops_day_offset_spec.rb index 41a49ade3..69a2d5cb9 100644 --- a/spec/models/chouette/vehicle_journey_at_stops_day_offset_spec.rb +++ b/spec/models/chouette/vehicle_journey_at_stops_day_offset_spec.rb @@ -1,7 +1,5 @@ require 'spec_helper' -# TODO: Ensure that the fields have a default value of 0 - describe Chouette::VehicleJourneyAtStop do describe "#calculate" do it "increments day offset when departure & arrival are on different sides @@ -15,11 +13,7 @@ describe Chouette::VehicleJourneyAtStop do at_stops << build_stubbed( :vehicle_journey_at_stop, arrival_time: arrival_time, - departure_time: departure_time, - - # TODO: make this the default - arrival_day_offset: 0, - departure_day_offset: 0 + departure_time: departure_time ) end @@ -46,11 +40,7 @@ describe Chouette::VehicleJourneyAtStop do at_stops << build_stubbed( :vehicle_journey_at_stop, arrival_time: arrival_time, - departure_time: departure_time, - - # TODO: make this the default - arrival_day_offset: 0, - departure_day_offset: 0 + departure_time: departure_time ) end @@ -76,11 +66,7 @@ describe Chouette::VehicleJourneyAtStop do at_stops << build_stubbed( :vehicle_journey_at_stop, arrival_time: arrival_time, - departure_time: departure_time, - - # TODO: make this the default - arrival_day_offset: 0, - departure_day_offset: 0 + departure_time: departure_time ) end |
