Sha256: 4d734f9afcf9e43413cde1adca13ebe31445e761ea214854b7ff2d3b3144c8a3

Contents?: true

Size: 873 Bytes

Versions: 6

Compression:

Stored size: 873 Bytes

Contents

# frozen_string_literal: true

require "test_helper"

class DataComplianceResourceTest < Minitest::Test
  def test_delete_invitee_data
    body = {emails: %w[test@test.com test2@test.com]}
    response = {body: fixture_file("data_compliance/delete_invitee_data"), status: 202}
    stub(method: :post, path: "data_compliance/deletion/invitees", body: body, response: response)

    assert client.data_compliance.delete_invitee_data(**body)
  end

  def test_delete_scheduled_event_data
    body = {
      start_time: "2019-01-02T03:04:05.678123Z",
      end_time: "2021-01-01T02:04:05.678123Z"
    }
    response = {body: fixture_file("data_compliance/delete_scheduled_event_data"), status: 202}
    stub(method: :post, path: "data_compliance/deletion/events", body: body, response: response)

    assert client.data_compliance.delete_scheduled_event_data(**body)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
calendlyr-0.7.5 test/calendlyr/resources/data_compliance_test.rb
calendlyr-0.7.4 test/calendlyr/resources/data_compliance_test.rb
calendlyr-0.7.3 test/calendlyr/resources/data_compliance_test.rb
calendlyr-0.7.2 test/calendlyr/resources/data_compliance_test.rb
calendlyr-0.7.1 test/calendlyr/resources/data_compliance_test.rb
calendlyr-0.7.0 test/calendlyr/resources/data_compliance_test.rb