aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2017-05-24 14:37:30 +0200
committerTeddy Wing2017-05-26 13:20:56 +0200
commit83d3f1d5fce256f90f308a182e1f3b9de518da45 (patch)
treebd04b0b66ed474cea44565b2bc6ce6943f4582eb
parentc0f787e85a7a7435872e6013f4123fcb3d35f007 (diff)
downloadchouette-core-83d3f1d5fce256f90f308a182e1f3b9de518da45.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