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