Sha256: c56b70703b313778ac53249ac1f678fe8fb4c1aa3354290ecefa950bd2307d0d

Contents?: true

Size: 372 Bytes

Versions: 1

Compression:

Stored size: 372 Bytes

Contents

# frozen_string_literal: true

module Archangel
  module TestingSupport
    ##
    # JSON helpers for testing
    #
    module JsonHelpers
      def json_response
        @json_response ||= JSON.parse(response.body, symbolize_names: true)
      end
    end
  end
end

RSpec.configure do |config|
  config.include Archangel::TestingSupport::JsonHelpers, type: :request
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
archangel-0.4.0 spec/support/helpers/json_response.rb