diff options
Diffstat (limited to 'spec/support/matchers/be_request_urgency.rb')
-rw-r--r-- | spec/support/matchers/be_request_urgency.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/support/matchers/be_request_urgency.rb b/spec/support/matchers/be_request_urgency.rb new file mode 100644 index 00000000000..e88f157366b --- /dev/null +++ b/spec/support/matchers/be_request_urgency.rb @@ -0,0 +1,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 |