summaryrefslogtreecommitdiff
path: root/spec/finders
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-08-07 00:20:02 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-08-07 00:20:02 -0400
commitfb6dc1f07de124915e48456bf45c108878687043 (patch)
tree3b086430eed3f4f88fc2ca6eb77a9476b841ede4 /spec/finders
parent5fb5fd253a960ed33eebc0f6aabeae37aa175fa8 (diff)
downloadgitlab-ce-fb6dc1f07de124915e48456bf45c108878687043.tar.gz
Add `Group#add_*` convenience methodsrs-group-convenience-methods
Encapsulates the logic for `Gitlab::Access::WHATEVER` levels.
Diffstat (limited to 'spec/finders')
-rw-r--r--spec/finders/projects_finder_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/finders/projects_finder_spec.rb b/spec/finders/projects_finder_spec.rb
index 2ab71b05968..de9d4cd6128 100644
--- a/spec/finders/projects_finder_spec.rb
+++ b/spec/finders/projects_finder_spec.rb
@@ -39,7 +39,7 @@ describe ProjectsFinder do
end
context 'authenticated, group member' do
- before { group.add_user(user, Gitlab::Access::DEVELOPER) }
+ before { group.add_developer(user) }
subject { ProjectsFinder.new.execute(user, group: group) }