lib/rimless/rspec/matchers.rb
# Check for the expected data on the encoded Apache Avro message.
# (deep include)
#
# @param message [Hash{Symbol => Mixed}] the message under inspection
# @return [Boolean] the check result
Check for the expected data on the encoded Apache Avro message.
(deep include)
Check for the expected data on the encoded Apache Avro message . ( deep include )
def data_match?(message)
          return true unless @data.any?
          message[:data].merge(@data.deep_stringify_keys) == message[:data]
        end
def data_match? ( message ) return true unless @data . any? message [ :data ] . merge ( @data . deep_stringify_keys ) == message [ :data ] end
Check for the expected data on the encoded Apache Avro message.
Check for the expected data on the encoded Apache Avro message .
the check result
the check result
Boolean
message
the message under inspection
the message under inspection