lib/rimless/rspec/matchers.rb
def schema_match?(message)
          return true unless @schema

          begin
            Rimless.avro.decode(message[:encoded_data],
                                schema_name: @schema.to_s)
            return true
          rescue Avro::IO::SchemaMatchException
            false
          end
        end
# Check for the expected schema on the given message.
#
# @param message [Hash{Symbol => Mixed}] the message under inspection
# @return [Boolean] the check result
Check for the expected schema on the given message.
Check for the expected schema on the given message .
def schema_match?(message)
          return true unless @schema
          begin
            Rimless.avro.decode(message[:encoded_data],
                                schema_name: @schema.to_s)
            return true
          rescue Avro::IO::SchemaMatchException
            false
          end
        end
def schema_match? ( message ) return true unless @schema begin Rimless . avro . decode ( message [ :encoded_data ] , schema_name : @schema . to_s ) return true rescue Avro :: IO :: SchemaMatchException false end end
Check for the expected schema on the given message.
Check for the expected schema on the given message .
the check result
the check result
Boolean
message
the message under inspection
the message under inspection