summaryrefslogtreecommitdiff
path: root/spec/lib/peek
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/peek')
-rw-r--r--spec/lib/peek/views/rugged_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/lib/peek/views/rugged_spec.rb b/spec/lib/peek/views/rugged_spec.rb
index 0fc75043df8..715b360953c 100644
--- a/spec/lib/peek/views/rugged_spec.rb
+++ b/spec/lib/peek/views/rugged_spec.rb
@@ -11,6 +11,10 @@ describe Peek::Views::Rugged, :request_store do
allow(Gitlab::RuggedInstrumentation).to receive(:peek_enabled?).and_return(true)
end
+ it 'returns no results' do
+ expect(subject.results).to eq({})
+ end
+
it 'returns aggregated results' do
::Gitlab::RuggedInstrumentation.query_time += 1.234
::Gitlab::RuggedInstrumentation.increment_query_count