Sha256: c1fb5e9ddf51d31870f58837f020d85e072180f03dd1e9ef5155fa532fabcc33

Contents?: true

Size: 301 Bytes

Versions: 1

Compression:

Stored size: 301 Bytes

Contents

module Napa
  module RspecExtensions
    module ResponseHelpers
      def parsed_response
        Hashie::Mash.new(JSON.parse(last_response.body))
      end

      def response_code
        last_response.status
      end

      def response_body
        last_response.body
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
napa-0.3.0 lib/napa/rspec_extensions/response_helpers.rb