aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorZog2017-12-27 14:22:16 +0100
committerZog2017-12-27 14:22:16 +0100
commitb191b68d3580e29a3879d7178d3fb4bb56c6c96f (patch)
tree438c9de77c79bd9aedfa8779dcdc4befa42eb46d /spec
parent607fa5e03289a10b60a773bc40af38f1d721bbea (diff)
downloadchouette-core-b191b68d3580e29a3879d7178d3fb4bb56c6c96f.tar.bz2
Refs #5407; Fix CI
Diffstat (limited to 'spec')
-rw-r--r--spec/controllers/vehicle_journeys_controller_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/controllers/vehicle_journeys_controller_spec.rb b/spec/controllers/vehicle_journeys_controller_spec.rb
index c9356fffa..416450c21 100644
--- a/spec/controllers/vehicle_journeys_controller_spec.rb
+++ b/spec/controllers/vehicle_journeys_controller_spec.rb
@@ -10,6 +10,7 @@ RSpec.describe VehicleJourneysController, :type => :controller do
before do
allow(controller).to receive(:pundit_user).and_return(user_context)
+ allow(controller).to receive(:current_organisation).and_return(@user.organisation)
end
it 'computes them correctly if not authorized' do