diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-08-07 00:20:02 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-08-07 00:20:02 -0400 |
commit | fb6dc1f07de124915e48456bf45c108878687043 (patch) | |
tree | 3b086430eed3f4f88fc2ca6eb77a9476b841ede4 /spec/finders | |
parent | 5fb5fd253a960ed33eebc0f6aabeae37aa175fa8 (diff) | |
download | gitlab-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.rb | 2 |
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) } |