diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-05 15:12:58 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-05 15:12:58 +0300 |
commit | c9b0dfef1ba43a9e04264023b08c589bcb9eb397 (patch) | |
tree | 4ea24fc43fe40e3c133e64e2476e0be42dafc10b /spec/support/matchers | |
parent | e0c90aab261896abcf93f3806d965790dbd03408 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support/matchers')
-rw-r--r-- | spec/support/matchers/be_a_target_duration.rb | 7 | ||||
-rw-r--r-- | spec/support/matchers/be_request_urgency.rb | 8 |
2 files changed, 8 insertions, 7 deletions
diff --git a/spec/support/matchers/be_a_target_duration.rb b/spec/support/matchers/be_a_target_duration.rb deleted file mode 100644 index f4efc89d3e0..00000000000 --- a/spec/support/matchers/be_a_target_duration.rb +++ /dev/null @@ -1,7 +0,0 @@ -# frozen_string_literal: true - -RSpec::Matchers.define :be_a_target_duration do |expected| - match do |actual| - actual.is_a?(::Gitlab::EndpointAttributes::Config::Duration) && actual.name == expected - end -end 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 |