Sha256: f070e0dab49866632038f99e420d7c18d2da5d6d2c5c9e6723bcb622f48a2915
Contents?: true
Size: 686 Bytes
Versions: 1
Compression:
Stored size: 686 Bytes
Contents
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__) require "simplecov" SimpleCov.start if ENV["CI"] == "true" require "codecov" SimpleCov.formatter = SimpleCov::Formatter::Codecov end require "calendly" require "minitest/autorun" require "webmock/minitest" class Minitest::Test def client Calendly::Client.new(api_key: "fake") end def fixture_file(fixture) File.read("test/fixtures/#{fixture}.json") end def stub(path:, method: :get, body: {}, response: {}) stub_req = stub_request(method, "#{Calendly::Client::BASE_URL}/#{path}") stub_req.with(body: body) if [:post, :put, :patch].include?(method) stub_req.to_return(**response) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
calendlyr-0.3.3 | test/test_helper.rb |