Sha256: f9a5d5059a6f8f69bf72dabd5c588d5ff7194abf9c4b72a278dae2032794acf3
Contents?: true
Size: 902 Bytes
Versions: 1
Compression:
Stored size: 902 Bytes
Contents
# frozen_string_literal: true require_relative "../test_helper" module Telnyx class FaxTest < Test::Unit::TestCase should "fetch index" do faxes = Fax.list assert_requested :get, "#{Telnyx.api_base}/v2/faxes" assert_kind_of ListObject, faxes assert_kind_of Fax, faxes.first end should "send fax" do fax = Fax.create connection_id: "foo", media_url: "example.com", to: "+13127367276", from: "+13127367277" assert_requested :post, "#{Telnyx.api_base}/v2/faxes" assert_kind_of Fax, fax end should "view fax" do fax = Fax.retrieve "foo" assert_requested :get, "#{Telnyx.api_base}/v2/faxes/foo" assert_kind_of Fax, fax end should "delete fax" do omit "!!waiting for mock!!" fax = Fax.retrieve "foo" fax.delete assert_requested :delete, "#{Telnyx.api_base}/v2/faxes/foo" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
telnyx-2.9.0 | test/telnyx/fax_test.rb |