Sha256: 0caf6d4d183aac25aacdfcb67a1895a0262fa3540f42e988eaafad8d089da43d

Contents?: true

Size: 532 Bytes

Versions: 6

Compression:

Stored size: 532 Bytes

Contents

# frozen_string_literal: true

require "test_helper"

class ScheduleLinkObjectTest < Minitest::Test
  def test_event_type
    json = JSON.parse(fixture_file("objects/scheduling_links/event_type")).merge(client: client)
    @scheduling_link = Calendlyr::SchedulingLink.new(json)

    response = {body: fixture_file("event_types/retrieve"), status: 200}
    stub(path: "event_types/GBGBDCAADAEDCRZ2", response: response)

    event_type = @scheduling_link.event_type

    assert_equal Calendlyr::EventType, event_type.class
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
calendlyr-0.7.5 test/calendlyr/objects/scheduling_link_test.rb
calendlyr-0.7.4 test/calendlyr/objects/scheduling_link_test.rb
calendlyr-0.7.3 test/calendlyr/objects/scheduling_link_test.rb
calendlyr-0.7.2 test/calendlyr/objects/scheduling_link_test.rb
calendlyr-0.7.1 test/calendlyr/objects/scheduling_link_test.rb
calendlyr-0.7.0 test/calendlyr/objects/scheduling_link_test.rb