gitlab-org--gitlab-foss/spec/support/matchers/be_request_urgency.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
222 B
Ruby
Raw Normal View History

# 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