diff options
Diffstat (limited to 'spec/features/global_search_spec.rb')
| -rw-r--r-- | spec/features/global_search_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/features/global_search_spec.rb b/spec/features/global_search_spec.rb index a7c8c29517e..6a6743f914d 100644 --- a/spec/features/global_search_spec.rb +++ b/spec/features/global_search_spec.rb @@ -14,7 +14,8 @@ describe 'Global search' do end it 'increases usage ping searches counter' do - expect(Gitlab::UsageDataCounters::SearchCounter).to receive(:increment_navbar_searches_count) + expect(Gitlab::UsageDataCounters::SearchCounter).to receive(:count).with(:navbar_searches) + expect(Gitlab::UsageDataCounters::SearchCounter).to receive(:count).with(:all_searches) submit_search('foobar') end |
