diff options
author | Mehdi Lahmam <mehdi@lahmam.com> | 2017-08-11 12:09:17 +0300 |
---|---|---|
committer | Mehdi Lahmam <mehdi@lahmam.com> | 2017-08-24 11:11:07 +0300 |
commit | 55f4ddad2b765f3b7466af5b43ef319a330c9fcd (patch) | |
tree | bc8887523b41d3014efcaf0736ba33729cb6e1bb /spec/finders/admin | |
parent | d184f27ed387c1a90a9f06f68eab801ec3bd89e3 (diff) |
Add an option to list only archived projects
Closes #35994
Diffstat (limited to 'spec/finders/admin')
-rw-r--r-- | spec/finders/admin/projects_finder_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/finders/admin/projects_finder_spec.rb b/spec/finders/admin/projects_finder_spec.rb index 28e36330029..4b67203a0df 100644 --- a/spec/finders/admin/projects_finder_spec.rb +++ b/spec/finders/admin/projects_finder_spec.rb @@ -118,6 +118,12 @@ describe Admin::ProjectsFinder do it { is_expected.to match_array([archived_project, shared_project, public_project, internal_project, private_project]) } end + + context 'archived=only' do + let(:params) { { archived: 'only' } } + + it { is_expected.to eq([archived_project]) } + end end context 'filter by personal' do |