diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-10-11 18:05:39 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-10-12 12:36:54 +0300 |
commit | 18907efbc9209ee39d8348eef5b3c7321b9aca26 (patch) | |
tree | f1b3d0c055d52bcbe7908b2d4abde1c12a3476ad /spec/models/concerns | |
parent | 8cde1e3285c870c85bee3a9a9ff4b8e5f53cff86 (diff) |
Pass `archived:` as a keyword argument
Diffstat (limited to 'spec/models/concerns')
-rw-r--r-- | spec/models/concerns/loaded_in_group_list_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/concerns/loaded_in_group_list_spec.rb b/spec/models/concerns/loaded_in_group_list_spec.rb index bf5bfaa76de..7a279547a3a 100644 --- a/spec/models/concerns/loaded_in_group_list_spec.rb +++ b/spec/models/concerns/loaded_in_group_list_spec.rb @@ -22,7 +22,7 @@ describe LoadedInGroupList do create(:project, namespace: parent, archived: true) create(:project, namespace: parent) - found_group = Group.with_selects_for_list('true').find_by(id: parent.id) + found_group = Group.with_selects_for_list(archived: 'true').find_by(id: parent.id) expect(found_group.preloaded_project_count).to eq(2) end @@ -31,7 +31,7 @@ describe LoadedInGroupList do create_list(:project, 2, namespace: parent, archived: true) create(:project, namespace: parent) - found_group = Group.with_selects_for_list('only').find_by(id: parent.id) + found_group = Group.with_selects_for_list(archived: 'only').find_by(id: parent.id) expect(found_group.preloaded_project_count).to eq(2) end |