Sha256: da266db56702d16c707f642f0510415392afa946cb91bab0684110b90f0b2e67
Contents?: true
Size: 644 Bytes
Versions: 5
Compression:
Stored size: 644 Bytes
Contents
# frozen_string_literal: true require "test_helper" class ResourceTest < Minitest::Test def test_handle_response_error Calendlyr::ResponseErrorHandler::ERROR_TYPES.each do |error_code, error_class| stub(path: "users/me", response: {body: fixture_file("resources/#{error_code}"), status: error_code.to_i}) assert_raises "Calendlyr::#{error_class}" do client.me end end end def test_handle_response_error_payment stub(path: "users/me", response: {body: fixture_file("resources/403_payment_required"), status: 403}) assert_raises Calendlyr::PaymentRequired do client.me end end end
Version data entries
5 entries across 5 versions & 1 rubygems