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-09-28 15:11:10 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-09-28 15:11:10 +0300
commit24e5ef9b1a56019d7ea6deb41e8c8cbe5f0a59a3 (patch)
tree9590894b19bd66573068c5dce417939f14aa7590 /spec/support/matchers
parentf4963c8c9bb2b6c38e9bd3016494a27c6c91e7e6 (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
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/support/matchers/be_a_target_duration.rb b/spec/support/matchers/be_a_target_duration.rb
new file mode 100644
index 00000000000..f4efc89d3e0
--- /dev/null
+++ b/spec/support/matchers/be_a_target_duration.rb
@@ -0,0 +1,7 @@
+# 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