Commit 93d19c14 authored by Andrejs Cunskis's avatar Andrejs Cunskis

Remove unnecessary switch case in eventually_matcher

parent 48b17dba
......@@ -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]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment