aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlban Peignier2017-12-28 08:55:41 +0100
committerAlban Peignier2017-12-28 08:55:41 +0100
commitdf389a13dc90d6765123b58de0e5dcbc55704cc3 (patch)
tree4d2ae3f86c56374fd71fb09a98f335a4b5a271d7
parent3472088028aa895032e013465d4ebf13f20fd6c9 (diff)
downloadchouette-core-df389a13dc90d6765123b58de0e5dcbc55704cc3.tar.bz2
Fixes JourneyPatternsCollectonsController. Refs #5407
-rw-r--r--spec/controllers/journey_patterns_collections_controller_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/controllers/journey_patterns_collections_controller_spec.rb b/spec/controllers/journey_patterns_collections_controller_spec.rb
index 7015bfe98..a3efbc23f 100644
--- a/spec/controllers/journey_patterns_collections_controller_spec.rb
+++ b/spec/controllers/journey_patterns_collections_controller_spec.rb
@@ -10,6 +10,7 @@ RSpec.describe JourneyPatternsCollectionsController, :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