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 ...@@ -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]
......
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