Sha256: 0b83995c406da882fe9f86f13ddead2ebaa8b1a5f3e1395954d97b9d4a2a01bb

Contents?: true

Size: 430 Bytes

Versions: 5

Compression:

Stored size: 430 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
      # @return [Hash{String => Mixed}] the parsed payload
      def avro_parse(data)
        Rimless.avro.decode(data)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rimless-0.1.4 lib/rimless/rspec/helpers.rb
rimless-0.1.3 lib/rimless/rspec/helpers.rb
rimless-0.1.2 lib/rimless/rspec/helpers.rb
rimless-0.1.1 lib/rimless/rspec/helpers.rb
rimless-0.1.0 lib/rimless/rspec/helpers.rb