diff options
Diffstat (limited to 'spec/support/controllers')
-rw-r--r-- | spec/support/controllers/authorization_helpers.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/spec/support/controllers/authorization_helpers.rb b/spec/support/controllers/authorization_helpers.rb deleted file mode 100644 index e1786e0ca8a..00000000000 --- a/spec/support/controllers/authorization_helpers.rb +++ /dev/null @@ -1,6 +0,0 @@ -# frozen_string_literal: true - -def forbid_controller_ability!(ability) - allow(controller).to receive(:can?).and_call_original - allow(controller).to receive(:can?).with(anything, ability, any_args).and_return(false) -end |