class Faraday::ForTest::Configuration

Attributes

dump_always[RW]
dump_if_assert_failed[RW]

Public Instance Methods

add_body_formatter(key, proc = nil, &block) click to toggle source
# File lib/faraday/for_test/response/formatter.rb, line 11
def add_body_formatter(key, proc = nil, &block)
  body_formatters[key] = block_given? ? block : proc
end
body_formatters() click to toggle source
# File lib/faraday/for_test/response/formatter.rb, line 5
def body_formatters
  @body_formatters ||= {
    "application/x-www-form-urlencoded" => Rack::Utils.method(:build_query)
  }
end