diff options
Diffstat (limited to 'spec/support')
| -rw-r--r-- | spec/support/pundit/pundit_view_policy.rb | 1 | 
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| | 
