Sha256: c07bea6b0466e9fabc2badd07fce1388ae7f0a53e5edba228161f4109e021f49

Contents?: true

Size: 202 Bytes

Versions: 3

Compression:

Stored size: 202 Bytes

Contents

# frozen_string_literal: true

module Requests
  module JsonHelper
    def json
      JSON.parse(response.body)
    end
  end
end

RSpec.configure do |config|
  config.include(Requests::JsonHelper)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kafka_command-0.0.3 spec/support/json_helper.rb
kafka_command-0.0.2 spec/support/json_helper.rb
kafka_command-0.0.1 spec/support/json_helper.rb