Sha256: f9775dead69d3130478e9e97cd92c97614a3c0272585bfab8b56214c8e23f6d4

Contents?: true

Size: 509 Bytes

Versions: 3

Compression:

Stored size: 509 Bytes

Contents

# frozen_string_literal: true

module Rimless
  # Some general RSpec testing stuff.
  module RSpec
    # A collection of Rimless/RSpec helpers.
    module Helpers
      # A simple helper to parse a blob of Apache Avro data.
      #
      # @param data [String] the Apache Avro blob
      # @param opts [Hash{Symbol => Mixed}] additional options
      # @return [Hash{String => Mixed}] the parsed payload
      def avro_parse(data, **opts)
        Rimless.avro_decode(data, **opts)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rimless-0.3.0 lib/rimless/rspec/helpers.rb
rimless-0.2.1 lib/rimless/rspec/helpers.rb
rimless-0.2.0 lib/rimless/rspec/helpers.rb