Sha256: 02ec1d713c2f113ed5ae0e184b93937a4e63fec815c50c66ce6f3a2cfaf65efb
Contents?: true
Size: 1.21 KB
Versions: 3
Compression:
Stored size: 1.21 KB
Contents
# frozen_string_literal: true require_relative "../test_helper" module Telnyx class FQDNConnectionTest < Test::Unit::TestCase should "list fqdn connections" do fqdn_connections = FQDNConnection.list assert_requested :get, "#{Telnyx.api_base}/v2/fqdn_connections" assert_kind_of ListObject, fqdn_connections assert_kind_of FQDNConnection, fqdn_connections.first end should "create fqdn connection" do FQDNConnection.create assert_requested :post, "#{Telnyx.api_base}/v2/fqdn_connections" end should "retrieve fqdn connection" do fqdn_connection = FQDNConnection.retrieve("id") assert_requested :get, "#{Telnyx.api_base}/v2/fqdn_connections/id" assert_kind_of FQDNConnection, fqdn_connection end should "delete fqdn connection" do fqdn_connection = FQDNConnection.retrieve("id") fqdn_connection.delete assert_requested :delete, "#{Telnyx.api_base}/v2/fqdn_connections/id" end should "update fqdn connection" do fqdn_connection = FQDNConnection.retrieve("id") fqdn_connection.active = false fqdn_connection.save assert_requested :patch, "#{Telnyx.api_base}/v2/fqdn_connections/id" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
telnyx-2.3.0 | test/telnyx/fqdn_connection_test.rb |
telnyx-2.2.0 | test/telnyx/fqdn_connection_test.rb |
telnyx-0.1.0 | test/telnyx/fqdn_connection_test.rb |