Sha256: fa79093c0ab1eb63ae606a826c0703aef5ceaf8eda3933f6ff55038852e16032

Contents?: true

Size: 489 Bytes

Versions: 5

Compression:

Stored size: 489 Bytes

Contents

# frozen_string_literal: true

require_relative "../test_helper"

module Telnyx
  class MessageNumberPoolTest < Test::Unit::TestCase
    should "be creatable" do
      message = Telnyx::MessageNumberPool.create(
        to: "+18005554000",
        from: "+18005559000",
        text: "Hello, World!",
        messaging_profile_id: "PROFILE_ID"
      )
      assert_requested :post, "#{Telnyx.api_base}/v2/messages/number_pool"
      assert message.is_a?(Telnyx::Message)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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