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