Sha256: 30d349773f6c56609b5e37bbb90362a59daf6fba15397a3accf93950ae87f389

Contents?: true

Size: 812 Bytes

Versions: 5

Compression:

Stored size: 812 Bytes

Contents

# frozen_string_literal: true

require_relative "../test_helper"

module Telnyx
  class BulkSimCardActionTest < Test::Unit::TestCase
    should "bulk sim card retrieve" do
      bulk_sim_card_actions = BulkSimCardAction.list
      assert_requested :get, "#{Telnyx.api_base}/v2/bulk_sim_card_actions"
      assert_kind_of ListObject, bulk_sim_card_actions
      assert_kind_of Telnyx::TelnyxObject, bulk_sim_card_actions.first
    end

    should "bulk sim card get by id" do
      bulk_sim_card_action_id = "6a09cdc3-8948-47f0-aa62-74ac943d6c58"
      bulk_sim_card_action = BulkSimCardAction.retrieve(bulk_sim_card_action_id)

      assert_requested :get, "#{Telnyx.api_base}/v2/bulk_sim_card_actions/#{bulk_sim_card_action_id}"
      assert_kind_of Telnyx::TelnyxObject, bulk_sim_card_action
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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