summaryrefslogtreecommitdiff
path: root/spec/policies/group_policy_spec.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2019-03-27 13:45:00 +0100
committerRémy Coutable <remy@rymai.me>2019-03-27 15:41:46 +0100
commitce4b70ce18893f7c2bdf6a52ce66dc5197eae40d (patch)
treedf7652a1b91fb6bc0d7f53b3faf0d92c995b10cf /spec/policies/group_policy_spec.rb
parent1983d05ccd6f7484ed1634d744ac0f414c4967ff (diff)
downloadgitlab-ce-ce4b70ce18893f7c2bdf6a52ce66dc5197eae40d.tar.gz
Factorize policy helpers into PolicyHelpers
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/policies/group_policy_spec.rb')
-rw-r--r--spec/policies/group_policy_spec.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/spec/policies/group_policy_spec.rb b/spec/policies/group_policy_spec.rb
index 92bdaa8b8b8..6a5136c835e 100644
--- a/spec/policies/group_policy_spec.rb
+++ b/spec/policies/group_policy_spec.rb
@@ -51,14 +51,6 @@ describe GroupPolicy do
subject { described_class.new(current_user, group) }
- def expect_allowed(*permissions)
- permissions.each { |p| is_expected.to be_allowed(p) }
- end
-
- def expect_disallowed(*permissions)
- permissions.each { |p| is_expected.not_to be_allowed(p) }
- end
-
context 'with no user' do
let(:group) { create(:group, :public) }
let(:current_user) { nil }