module Rapidash

Rapidash::TestClient A dummy client for testing with. Create a new test client by including this module and initializing with a set of responses. Example:

class TesterClient
 include Rapidash::TestClient
end

responses = {
  get: { "foo" => "bar" },
  post: { "baz" => "data" }
}

client = TesterClient.new(responses)

Example with JSON support:

responses = {
  get: { "foo" => '{"some": 123, "json": 456}' }
}

client = TesterClient.new(responses, json: true)

Constants

VERSION