Sha256: 26842fdbcbc4ceeb7b64dd6c135e9dca2df18449aa4d08267e6bc365f7a65373

Contents?: true

Size: 871 Bytes

Versions: 4

Compression:

Stored size: 871 Bytes

Contents

# frozen_string_literal: true

require_relative "../test_helper"

module Telnyx
  class VirtualCrossConnectRegionTest < Test::Unit::TestCase
    setup do
      @id = "d25f43b3-aea3-6a5d-7a1b-d83e5c100cce"
    end
    should "retrieve virtual cross connect region" do
      omit "ID req mismatch"
      virtual_cross_connect_region = VirtualCrossConnectRegion.retrieve @id
      assert_requested(:get, "#{Telnyx.api_base}/v2/virtual_cross_connect_regions/#{@id}")
      assert_kind_of VirtualCrossConnectRegion, virtual_cross_connect_region
    end

    should "list virtual cross connect regions" do
      omit "ID req mismatch"
      virtual_cross_connect_regions = VirtualCrossConnectRegion.list
      assert_requested(:get, "#{Telnyx.api_base}/v2/virtual_cross_connect_regions")
      assert_kind_of Telnyx::ListObject, virtual_cross_connect_regions
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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