Sha256: e7922b65fb4062eb1f11324e9b0ddb7f539e2b711ab30bf2a06c2aa9fdd8979c

Contents?: true

Size: 677 Bytes

Versions: 5

Compression:

Stored size: 677 Bytes

Contents

# frozen_string_literal: true

require_relative "../test_helper"

module Telnyx
  class RequirementTypeTest < Test::Unit::TestCase
    setup do
      @id = "d25f43b3-aea3-6a5d-7a1b-d83e5c100cce"
    end
    should "retrieve requirement type" do
      requirement_type = RequirementType.retrieve @id
      assert_requested(:get, "#{Telnyx.api_base}/v2/requirement_types/#{@id}")
      assert_kind_of RequirementType, requirement_type
    end

    should "list requirement types" do
      requirement_types = RequirementType.list
      assert_requested(:get, "#{Telnyx.api_base}/v2/requirement_types")
      assert_kind_of Telnyx::ListObject, requirement_types
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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