Sha256: adb2af65f0e95dca4a35a044203f3e17b97d6d632e1564541593f03e126e5646
Contents?: true
Size: 880 Bytes
Versions: 2
Compression:
Stored size: 880 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" 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
telnyx-2.8.0 | test/telnyx/fax_test.rb |
telnyx-2.7.0 | test/telnyx/fax_test.rb |