Sha256: 74d96e7d4ce55d17758f20f52f4db4c2cf5d5be14f6899763014622806730dbb

Contents?: true

Size: 982 Bytes

Versions: 5

Compression:

Stored size: 982 Bytes

Contents

# frozen_string_literal: true

require_relative "../test_helper"

module Telnyx
  class RoomCompositionTest < Test::Unit::TestCase
    setup do
      @id = "23d7dcc9-a43b-6d51-dace-acfe22622af3"
      @room_composition = RoomComposition.retrieve(@id)
    end
    should "be listable" do
      room_compositions = RoomComposition.list
      assert_requested(:get, "#{Telnyx.api_base}/v2/room_compositions")
      assert_kind_of Telnyx::TelnyxObject, room_compositions
    end

    should "be creatable" do
      RoomComposition.create text: "test", from: "+18445550001", to: "+18445550001"
      assert_requested :post, "#{Telnyx.api_base}/v2/room_compositions"
    end

    should "be deletable" do
      id = @room_composition.id.freeze
      @room_composition.delete
      assert_requested :delete, "#{Telnyx.api_base}/v2/room_compositions/#{id}"
    end

    should "be viewable" do
      assert_requested :get, "#{Telnyx.api_base}/v2/room_compositions/#{@id}"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
telnyx-3.0.5 test/telnyx/room_composition_test.rb
telnyx-3.0.4 test/telnyx/room_composition_test.rb
telnyx-3.0.3 test/telnyx/room_composition_test.rb
telnyx-3.0.2 test/telnyx/room_composition_test.rb
telnyx-3.0.0 test/telnyx/room_composition_test.rb