summaryrefslogtreecommitdiff
path: root/spec/support/matchers/be_request_urgency.rb
blob: e88f157366b7dc8635db4809bc1289bd152af7b0 (plain)
1
2
3
4
5
6
7
8
# frozen_string_literal: true

RSpec::Matchers.define :be_request_urgency do |expected|
  match do |actual|
    actual.is_a?(::Gitlab::EndpointAttributes::Config::RequestUrgency) &&
      actual.name == expected
  end
end