lib/rimless/rspec/helpers.rb in rimless-0.1.4 vs lib/rimless/rspec/helpers.rb in rimless-0.2.0
- old
+ new
@@ -6,12 +6,13 @@
# 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)
- Rimless.avro.decode(data)
+ def avro_parse(data, **opts)
+ Rimless.avro_decode(data, **opts)
end
end
end
end