Sha256: a14ab54c7da99ee4979cec70956b7441a3f269fe1b7cf0ca7bcb91e48bf7998f
Contents?: true
Size: 1.01 KB
Versions: 3
Compression:
Stored size: 1.01 KB
Contents
# frozen_string_literal: true require_relative "../test_helper" module Telnyx class VerifyProfileTest < Test::Unit::TestCase should "list verify_profiles" do verify_profile = VerifyProfile.list assert_requested :get, "#{Telnyx.api_base}/v2/verify_profiles" assert_kind_of ListObject, verify_profile assert_kind_of VerifyProfile, verify_profile.first end should "create verify_profile" do VerifyProfile.create name: "test" assert_requested :post, "#{Telnyx.api_base}/v2/verify_profiles" end should "retrieve verify_profile" do verify_profile = VerifyProfile.retrieve("id") assert_requested :get, "#{Telnyx.api_base}/v2/verify_profiles/id" assert_kind_of VerifyProfile, verify_profile end should "update verify_profile" do verify_profile = VerifyProfile.retrieve("id") verify_profile.name = "123" verify_profile.save assert_requested :patch, "#{Telnyx.api_base}/v2/verify_profiles/#{verify_profile.id}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
telnyx-2.9.0 | test/telnyx/verify_profile_test.rb |
telnyx-2.8.0 | test/telnyx/verify_profile_test.rb |
telnyx-2.7.0 | test/telnyx/verify_profile_test.rb |