spec/runners/command_monitoring.rb
# Determine if the data matches.
#
# @example Does the data match?
#   matchable.data_matches?(actual, expected)
#
# @param [ Object ] actual The actual data.
# @param [ Object ] expected The expected data.
#
# @return [ true, false ] If the data matches.
#
# @since 2.1.0
Determine if the data matches.
Determine if the data matches .
def data_matches?(actual, expected)
        case expected
        when ::Hash, BSON::Document then
          hash_matches?(actual, expected)
        when ::Array
          array_matches?(actual, expected)
        else
          value_matches?(actual, expected)
        end
      end
def data_matches? ( actual , expected ) case expected when :: Hash , BSON :: Document then hash_matches? ( actual , expected ) when :: Array array_matches? ( actual , expected ) else value_matches? ( actual , expected ) end end
Determine if the data matches.
Determine if the data matches .
If the data matches.
If the data matches .
 true, false 
actual
expected
expected The expected data.
expected The expected data .
example
Does the data match. matchable.data_matches?(actual, expected)
Does the data match . matchable . data_matches? ( actual expected )
since
None