Sha256: ca848e6f8fd7b1957ee03e99e65798c3c1a18003254a0c5c6d3dad31afe1972d

Contents?: true

Size: 652 Bytes

Versions: 6

Compression:

Stored size: 652 Bytes

Contents

# frozen_string_literal: true

require "test_helper"

class ShareObjectTest < Minitest::Test
  def test_associated_scheduling_links
    json = JSON.parse(fixture_file("objects/share")).merge(client: client)
    @share = Calendlyr::Share.new(json)

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

    scheculing_links = @share.associated_scheduling_links

    assert_equal 1, scheculing_links.size
    assert_equal Calendlyr::SchedulingLink, scheculing_links.first.class
    assert_equal Calendlyr::EventType, scheculing_links.first.event_type.class
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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