Sha256: 5a7b7526ba3991a68af21605cbd57636e4e204744fdadc16da0b601928194d36

Contents?: true

Size: 614 Bytes

Versions: 6

Compression:

Stored size: 614 Bytes

Contents

# frozen_string_literal: true

require "test_helper"

class OutgoingCommunicationsResourceTest < Minitest::Test
  def test_list
    response = {body: fixture_file("outgoing_communications/list"), status: 200}
    stub(path: "outgoing_communications", response: response)
    outgoing_communications = client.outgoing_communications.list

    assert_equal Calendlyr::Collection, outgoing_communications.class
    assert_equal Calendlyr::Object, outgoing_communications.data.first.class
    assert_equal 1, outgoing_communications.data.count
    assert_equal "sms", outgoing_communications.data.first.type
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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