Sha256: c37646b6d1c0a060be347cd0d879a34416b9c78e25bcedc075b7e21c6f3fe115

Contents?: true

Size: 608 Bytes

Versions: 6

Compression:

Stored size: 608 Bytes

Contents

# frozen_string_literal: true

require "test_helper"

class SchedulingLinksResourceTest < Minitest::Test
  def test_create
    owner_uri = "https://api.calendly.com/event_types/GBGBDCAADAEDCRZ2"
    max_event_count = 20
    owner_type = "EventType"
    response = {body: fixture_file("scheduling_links/create"), status: 201}
    stub(method: :post, path: "scheduling_links", body: {owner: owner_uri, max_event_count: max_event_count, owner_type: owner_type}, response: response)

    assert client.scheduling_links.create(owner: owner_uri, max_event_count: max_event_count, owner_type: owner_type)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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