Sha256: 62bde9a1c3964eed930f5490660185ff7d466c54b3a91e90d9b7b7bd716d1a59
Contents?: true
Size: 1.27 KB
Versions: 6
Compression:
Stored size: 1.27 KB
Contents
# frozen_string_literal: true require "test_helper" module Events class InviteeTest < Minitest::Test def test_list event_uuid = "ABCDABCDABCDABCD" response = {body: fixture_file("event_invitees/list"), status: 200} stub(path: "scheduled_events/#{event_uuid}/invitees", response: response) event_invitees = client.events.list_invitees(uuid: event_uuid) assert_equal Calendlyr::Collection, event_invitees.class assert_equal Calendlyr::Events::Invitee, event_invitees.data.first.class assert_equal 1, event_invitees.data.count assert_equal "sNjq4TvMDfUHEl7zHRR0k0E1PCEJWvdi", event_invitees.next_page_token end def test_retrieve event_uuid = "abc123" invitee_uuid = "abc123" response = {body: fixture_file("event_invitees/retrieve"), status: 200} stub(path: "scheduled_events/#{event_uuid}/invitees/#{invitee_uuid}", response: response) event_invitee = client.events.retrieve_invitee(event_uuid: event_uuid, invitee_uuid: invitee_uuid) assert_equal Calendlyr::Events::Invitee, event_invitee.class assert_equal "https://api.calendly.com/api/v2/scheduled_events/ABCDABCDABCDABCD/invitees/ABCDABCDABCDABCD", event_invitee.uri assert_equal "John Doe", event_invitee.name end end end
Version data entries
6 entries across 6 versions & 1 rubygems