Welcome to mirror list, hosted at ThFree Co, Russian Federation.

monitor_result_shared_examples.rb « watchdog « memory « gitlab « lib « shared_examples « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 98c0e7d506b751610ef1383d8e169019a70efead (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

RSpec.shared_examples 'returns Watchdog Monitor result' do |threshold_violated:|
  it 'returns if threshold is violated and payload' do
    result = monitor.call

    expect(result[:threshold_violated]).to eq(threshold_violated)
    expect(result[:payload]).to eq(payload)
  end
end