summaryrefslogtreecommitdiff
path: root/spec/policies
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2018-03-06 23:30:47 +0100
committerBob Van Landuyt <bob@vanlanduyt.co>2018-03-07 16:59:17 +0100
commit9aabd8fd5ecb4090515db48692f3d064624aec0a (patch)
tree318418b94d97bc846e6e00ed782181cfd26e9487 /spec/policies
parent9b27027619580bffeffa88965007c2c29ac9648c (diff)
downloadgitlab-ce-9aabd8fd5ecb4090515db48692f3d064624aec0a.tar.gz
Limit queries to a user-branch combination
The query becomes a lot simpler if we can check the branch name as well instead of having to load all branch names.
Diffstat (limited to 'spec/policies')
-rw-r--r--spec/policies/project_policy_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/policies/project_policy_spec.rb b/spec/policies/project_policy_spec.rb
index f449fbd6b52..ea76e604153 100644
--- a/spec/policies/project_policy_spec.rb
+++ b/spec/policies/project_policy_spec.rb
@@ -323,7 +323,7 @@ describe ProjectPolicy do
)
end
let(:maintainer_abilities) do
- %w(push_single_branch create_build update_build create_pipeline update_pipeline)
+ %w(create_build update_build create_pipeline update_pipeline)
end
subject { described_class.new(user, project) }