spec/support/command_monitoring.rb
# Check if a value matches.
#
# @example Does a value match.
#   matchable.value_matches?(actual, expected)
#
# @param [ Object ] actual The actual value.
# @param [ Object ] expected The expected object.
#
# @return [ true, false ] If the value matches.
#
# @since 2.1.0
Check if a value matches.
Check if a value matches .
def value_matches?(actual, expected)
        case expected
        when '42', 42 then
          actual > 0
        when '' then
          !actual.nil?
        else
          actual == expected
        end
      end
def value_matches? ( actual , expected ) case expected when '42' , 42 then actual > 0 when '' then ! actual . nil? else actual == expected end end
Check if a value matches.
Check if a value matches .
If the value matches.
If the value matches .
 true, false 
actual
expected
expected The expected object.
expected The expected object .
example
Does a value match. matchable.value_matches?(actual, expected)
Does a value match . matchable . value_matches? ( actual expected )
since
None