aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support
diff options
context:
space:
mode:
authorZog2018-02-09 10:52:01 +0100
committerZog2018-02-09 11:08:11 +0100
commit34dca4bbfc60b17a1648d8af34d592ec7c58c0ca (patch)
treeed946e3cc5d72fdc4acb0e77b6a0353877d96df8 /spec/support
parent708c2fbe2f579426972a45f9a716d844a8e825ae (diff)
downloadchouette-core-34dca4bbfc60b17a1648d8af34d592ec7c58c0ca.tar.bz2
Refs 5669; Fix specs5669-specs-snpashots
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/pundit/pundit_view_policy.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/support/pundit/pundit_view_policy.rb b/spec/support/pundit/pundit_view_policy.rb
index 058f1f6ed..63970de02 100644
--- a/spec/support/pundit/pundit_view_policy.rb
+++ b/spec/support/pundit/pundit_view_policy.rb
@@ -11,6 +11,7 @@ module Pundit
allow(view).to receive(:current_user) { current_user }
allow(view).to receive(:current_organisation).and_return(organisation)
allow(view).to receive(:current_offer_workbench).and_return(current_offer_workbench)
+ allow(view).to receive(:current_workgroup).and_return(current_offer_workbench.workgroup)
allow(view).to receive(:has_feature?){ |f| features.include?(f)}
allow(view).to receive(:user_signed_in?).and_return true
allow(view).to receive(:policy) do |instance|