Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
93d19c14
Commit
93d19c14
authored
Aug 30, 2021
by
Andrejs Cunskis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary switch case in eventually_matcher
parent
48b17dba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
qa/qa/support/matchers/eventually_matcher.rb
qa/qa/support/matchers/eventually_matcher.rb
+2
-5
No files found.
qa/qa/support/matchers/eventually_matcher.rb
View file @
93d19c14
...
@@ -108,10 +108,7 @@ module QA
...
@@ -108,10 +108,7 @@ module QA
#
#
# @return [String]
# @return [String]
def
operator_msg
def
operator_msg
case
operator
operator
==
'eq'
?
'equal'
:
operator
when
'eq'
then
'equal'
else
operator
end
end
end
# Expect operator
# Expect operator
...
@@ -127,7 +124,7 @@ module QA
...
@@ -127,7 +124,7 @@ module QA
def
expectation_args
def
expectation_args
if
operator
.
include?
(
'truthy'
)
||
operator
.
include?
(
'falsey'
)
||
operator
.
include?
(
'empty'
)
if
operator
.
include?
(
'truthy'
)
||
operator
.
include?
(
'falsey'
)
||
operator
.
include?
(
'empty'
)
operator
operator
elsif
operator
==
"include"
&&
expected
.
is_a?
(
Array
)
elsif
operator
==
'include'
&&
expected
.
is_a?
(
Array
)
[
operator
,
*
expected
]
[
operator
,
*
expected
]
else
else
[
operator
,
expected
]
[
operator
,
expected
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment