diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-09-19 11:15:57 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-10-04 22:49:41 +0200 |
commit | 31f775689396722e38de20157b46a75b1fe40582 (patch) | |
tree | a91dfc0f12c5ac8b844094957519b131967d33f2 /spec/finders | |
parent | e3daa73fbfce6f178de512aeb165072f1ffde503 (diff) | |
download | gitlab-ce-31f775689396722e38de20157b46a75b1fe40582.tar.gz |
`current_user:` as a keyword argument
Diffstat (limited to 'spec/finders')
-rw-r--r-- | spec/finders/group_children_finder_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/finders/group_children_finder_spec.rb b/spec/finders/group_children_finder_spec.rb index 3df153abc6a..8257e158b06 100644 --- a/spec/finders/group_children_finder_spec.rb +++ b/spec/finders/group_children_finder_spec.rb @@ -4,7 +4,9 @@ describe GroupChildrenFinder do let(:user) { create(:user) } let(:group) { create(:group) } let(:params) { {} } - subject(:finder) { described_class.new(user, parent_group: group, params: params) } + subject(:finder) do + described_class.new(current_user: user, parent_group: group, params: params) + end before do group.add_owner(user) |