Sha256: f881dd1af743ec0603164aecd70b067b11864c1b01bc9a3fb43ec5e1a39caabb
Contents?: true
Size: 359 Bytes
Versions: 7
Compression:
Stored size: 359 Bytes
Contents
module Snov class FakeClient def get(path) data = File.read("#{__dir__}/fake_client/get#{path.tr("/", "_")}.json") MultiJson.load(data) end def post(path, params = {}) params.to_a.map(&:join).join("&") data = File.read("#{__dir__}/fake_client/post#{path.tr("/", "_")}.json") MultiJson.load(data) end end end
Version data entries
7 entries across 7 versions & 1 rubygems