aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2017-05-24 14:37:30 +0200
committerRobert2017-05-29 08:49:52 +0200
commit8783ba692a1a648fbd4e249037c790a588a98fca (patch)
treef6ac2db747b45e1aec4415f4c4804b71e045dbd8
parent682bbac39d4c0da1a502f3395f07ad3f30df9497 (diff)
downloadchouette-core-8783ba692a1a648fbd4e249037c790a588a98fca.tar.bz2
time_duration_spec.rb: Remove unnecessary `let!` & `subject`
These are holdovers from when these specs were copied from `vehicle_journey_at_stop_spec.rb`. They're not used in our specs now so get rid of them. Refs #870
-rw-r--r--spec/lib/time_duration_spec.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/spec/lib/time_duration_spec.rb b/spec/lib/time_duration_spec.rb
index f55457e31..2d63eba76 100644
--- a/spec/lib/time_duration_spec.rb
+++ b/spec/lib/time_duration_spec.rb
@@ -2,9 +2,6 @@ require 'spec_helper'
describe TimeDuration do
describe ".exceeds_gap?" do
- let!(:vehicle_journey) { create(:vehicle_journey_odd) }
- subject { vehicle_journey.vehicle_journey_at_stops.first }
-
context "when duration is 4.hours" do
it "should return false if gap < 1.hour" do
t1 = Time.now