Sha256: 15b97aee12c822f65517773866fbea171d10e792a48bca06ffe88ee624b3d197
Contents?: true
Size: 1.15 KB
Versions: 9
Compression:
Stored size: 1.15 KB
Contents
# frozen_string_literal: true require_relative "../test_helper" module Telnyx class BillingGroupTest < Test::Unit::TestCase should "list billing groups" do billing_groups = BillingGroup.list assert_requested :get, "#{Telnyx.api_base}/v2/billing_groups" assert_kind_of ListObject, billing_groups assert_kind_of BillingGroup, billing_groups.first end should "create billing group" do BillingGroup.create assert_requested :post, "#{Telnyx.api_base}/v2/billing_groups" end should "retrieve billing group" do billing_group = BillingGroup.retrieve("id") assert_requested :get, "#{Telnyx.api_base}/v2/billing_groups/id" assert_kind_of BillingGroup, billing_group end should "delete billing group" do billing_group = BillingGroup.retrieve("id") billing_group.delete assert_requested :delete, "#{Telnyx.api_base}/v2/billing_groups/id" end should "update billing group" do billing_group = BillingGroup.retrieve("id") billing_group.active = false billing_group.save assert_requested :patch, "#{Telnyx.api_base}/v2/billing_groups/id" end end end
Version data entries
9 entries across 9 versions & 1 rubygems