diff options
author | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-06-13 12:18:47 +0300 |
---|---|---|
committer | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2019-02-27 22:19:49 +0300 |
commit | 0fad7aa79c7925391b3586187a6da464bffbd49d (patch) | |
tree | 2e12e6c995cc0e3882f1fd4a1469bddf223707ef /spec/finders/admin | |
parent | d3accd36a0fda4014979c916ef1c0a3875a30199 (diff) |
add tag filter to admin runners page
Diffstat (limited to 'spec/finders/admin')
-rw-r--r-- | spec/finders/admin/runners_finder_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/finders/admin/runners_finder_spec.rb b/spec/finders/admin/runners_finder_spec.rb index 0b2325cc7ca..94ccb398801 100644 --- a/spec/finders/admin/runners_finder_spec.rb +++ b/spec/finders/admin/runners_finder_spec.rb @@ -37,6 +37,14 @@ describe Admin::RunnersFinder do end end + context 'filter by tag_name' do + it 'calls the corresponding scope on Ci::Runner' do + expect(Ci::Runner).to receive(:tagged_with).with(%w[tag1 tag2]).and_call_original + + described_class.new(params: { tag_name: %w[tag1 tag2] }).execute + end + end + context 'sort' do context 'without sort param' do it 'sorts by created_at' do |