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
path: root/qa
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-08-30 21:10:36 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-08-30 21:10:36 +0300
commit74cddf1b7c2e4b19ff5741ac9cf67dd7d113cea3 (patch)
treef6463acd890b63c64f93b44b4110fb09a925a055 /qa
parentfbbf1e9bc53e9a0e8fc6f2018d1238a77f198e88 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/support/matchers/eventually_matcher.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/qa/qa/support/matchers/eventually_matcher.rb b/qa/qa/support/matchers/eventually_matcher.rb
index d380dfeb5bf..ff8adab424b 100644
--- a/qa/qa/support/matchers/eventually_matcher.rb
+++ b/qa/qa/support/matchers/eventually_matcher.rb
@@ -108,10 +108,7 @@ module QA
#
# @return [String]
def operator_msg
- case operator
- when 'eq' then 'equal'
- else operator
- end
+ operator == 'eq' ? 'equal' : operator
end
# Expect operator
@@ -127,7 +124,7 @@ module QA
def expectation_args
if operator.include?('truthy') || operator.include?('falsey') || operator.include?('empty')
operator
- elsif operator == "include" && expected.is_a?(Array)
+ elsif operator == 'include' && expected.is_a?(Array)
[operator, *expected]
else
[operator, expected]