Sha256: 26c64dd0914f9e7dc61ab1b58f247ce65b3d16919e45a9cb637002f1199df34e

Contents?: true

Size: 651 Bytes

Versions: 12

Compression:

Stored size: 651 Bytes

Contents

require './test/test_base.rb'

class RingCentralSdkHelperInflatorContactInfoTest < Test::Unit::TestCase
  def test_setup
    inf  = RingCentralSdk::REST::Request::Inflator::ContactInfo.new

    arr1 = inf.inflate_to_array 1_650_555_121_2
    assert_equal 1_650_555_121_2, arr1[0][:phoneNumber]

    arr2 = inf.inflate_to_array '+16505551212'
    assert_equal '+16505551212', arr2[0][:phoneNumber]

    arr3 = inf.inflate_to_array(phoneNumber: 1_650_555_121_2)
    assert_equal 1_650_555_121_2, arr3[0][:phoneNumber]

    arr4 = inf.inflate_to_array([{ phoneNumber: 1_650_555_121_2 }])
    assert_equal 1_650_555_121_2, arr4[0][:phoneNumber]
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ringcentral_sdk-3.1.0 test/test_helper_inflator_contact_info.rb
ringcentral_sdk-3.0.1 test/test_helper_inflator_contact_info.rb
ringcentral_sdk-3.0.0 test/test_helper_inflator_contact_info.rb
ringcentral_sdk-2.3.0 test/test_helper_inflator_contact_info.rb
ringcentral_sdk-2.2.3 test/test_helper_inflator_contact_info.rb
ringcentral_sdk-2.2.2 test/test_helper_inflator_contact_info.rb
ringcentral_sdk-2.2.1 test/test_helper_inflator_contact_info.rb
ringcentral_sdk-2.1.0 test/test_helper_inflator_contact_info.rb
ringcentral_sdk-2.0.3 test/test_helper_inflator_contact_info.rb
ringcentral_sdk-2.0.2 test/test_helper_inflator_contact_info.rb
ringcentral_sdk-2.0.1 test/test_helper_inflator_contact_info.rb
ringcentral_sdk-2.0.0 test/test_helper_inflator_contact_info.rb