Sha256: 5043164b07a5da7a44f62d50d25110223da977693cc602bb4bc0131050dc319e

Contents?: true

Size: 477 Bytes

Versions: 13

Compression:

Stored size: 477 Bytes

Contents

# frozen_string_literal: true

require_relative "../test_helper"

module Telnyx
  class NumberLookupTest < Test::Unit::TestCase
    test "retrieve number" do
      number = "555-555-5555"
      stub = stub_request(:get, "#{Telnyx.api_base}/v2/number_lookup/#{number}")
             .to_return(body: { data: { record_type: "number_lookup" } }.to_json)
      nl = NumberLookup.retrieve number

      assert_requested stub
      assert_kind_of NumberLookup, nl
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
telnyx-3.0.5 test/telnyx/number_lookup_test.rb
telnyx-3.0.4 test/telnyx/number_lookup_test.rb
telnyx-3.0.3 test/telnyx/number_lookup_test.rb
telnyx-3.0.2 test/telnyx/number_lookup_test.rb
telnyx-3.0.0 test/telnyx/number_lookup_test.rb
telnyx-2.9.0 test/telnyx/number_lookup_test.rb
telnyx-2.8.0 test/telnyx/number_lookup_test.rb
telnyx-2.7.0 test/telnyx/number_lookup_test.rb
telnyx-2.6.0 test/telnyx/number_lookup_test.rb
telnyx-2.5.0 test/telnyx/number_lookup_test.rb
telnyx-2.4.0 test/telnyx/number_lookup_test.rb
telnyx-2.3.0 test/telnyx/number_lookup_test.rb
telnyx-2.2.0 test/telnyx/number_lookup_test.rb