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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-10-05 15:12:58 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-10-05 15:12:58 +0300
commitc9b0dfef1ba43a9e04264023b08c589bcb9eb397 (patch)
tree4ea24fc43fe40e3c133e64e2476e0be42dafc10b /spec/support/matchers
parente0c90aab261896abcf93f3806d965790dbd03408 (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.rb7
-rw-r--r--spec/support/matchers/be_request_urgency.rb8
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