twilio-ruby 5.6.3 → 5.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +18 -0
- data/README.md +2 -2
- data/examples/print_call_log.rb +1 -1
- data/lib/twilio-ruby/jwt/client_capability.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account.rb +6 -1
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +12 -2
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +12 -2
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +12 -2
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +6 -1
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +5 -1
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +5 -1
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +12 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +6 -1
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +6 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +6 -1
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +6 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +6 -1
- data/lib/twilio-ruby/rest/notify/v1/service/user.rb +6 -1
- data/lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb +6 -1
- data/lib/twilio-ruby/rest/preview/proxy/service/phone_number.rb +6 -1
- data/lib/twilio-ruby/rest/preview/understand/service/intent.rb +5 -1
- data/lib/twilio-ruby/rest/preview/understand/service/model_build.rb +12 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +6 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +12 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +12 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +12 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +6 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +6 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +12 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +10 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +6 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +12 -2
- data/lib/twilio-ruby/rest/video/v1/composition.rb +5 -1
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +7 -1
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/accounts/v1/credential/aws_spec.rb +9 -9
- data/spec/integration/accounts/v1/credential/public_key_spec.rb +9 -9
- data/spec/integration/api/v2010/account/address/dependent_phone_number_spec.rb +6 -6
- data/spec/integration/api/v2010/account/address_spec.rb +25 -25
- data/spec/integration/api/v2010/account/application_spec.rb +20 -20
- data/spec/integration/api/v2010/account/authorized_connect_app_spec.rb +7 -7
- data/spec/integration/api/v2010/account/available_phone_number/local_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number/machine_to_machine_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number/mobile_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number/national_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number/shared_cost_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number/toll_free_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number/voip_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number_spec.rb +7 -7
- data/spec/integration/api/v2010/account/call/feedback_spec.rb +12 -12
- data/spec/integration/api/v2010/account/call/feedback_summary_spec.rb +10 -10
- data/spec/integration/api/v2010/account/call/notification_spec.rb +18 -18
- data/spec/integration/api/v2010/account/call/recording_spec.rb +18 -18
- data/spec/integration/api/v2010/account/call_spec.rb +20 -20
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +34 -34
- data/spec/integration/api/v2010/account/conference_spec.rb +11 -11
- data/spec/integration/api/v2010/account/connect_app_spec.rb +11 -11
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +17 -17
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +25 -25
- data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +8 -8
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +8 -8
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +8 -8
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +17 -17
- data/spec/integration/api/v2010/account/key_spec.rb +15 -15
- data/spec/integration/api/v2010/account/message/feedback_spec.rb +4 -4
- data/spec/integration/api/v2010/account/message/media_spec.rb +18 -18
- data/spec/integration/api/v2010/account/message_spec.rb +21 -21
- data/spec/integration/api/v2010/account/new_key_spec.rb +2 -2
- data/spec/integration/api/v2010/account/new_signing_key_spec.rb +2 -2
- data/spec/integration/api/v2010/account/notification_spec.rb +11 -11
- data/spec/integration/api/v2010/account/outgoing_caller_id_spec.rb +15 -15
- data/spec/integration/api/v2010/account/queue/member_spec.rb +19 -19
- data/spec/integration/api/v2010/account/queue_spec.rb +20 -20
- data/spec/integration/api/v2010/account/recording/add_on_result/payload_spec.rb +25 -25
- data/spec/integration/api/v2010/account/recording/add_on_result_spec.rb +18 -18
- data/spec/integration/api/v2010/account/recording/transcription_spec.rb +18 -18
- data/spec/integration/api/v2010/account/recording_spec.rb +11 -11
- data/spec/integration/api/v2010/account/short_code_spec.rb +11 -11
- data/spec/integration/api/v2010/account/signing_key_spec.rb +15 -15
- data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +31 -31
- data/spec/integration/api/v2010/account/sip/credential_list_spec.rb +21 -21
- data/spec/integration/api/v2010/account/sip/domain/credential_list_mapping_spec.rb +25 -25
- data/spec/integration/api/v2010/account/sip/domain/ip_access_control_list_mapping_spec.rb +25 -25
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +20 -20
- data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +31 -31
- data/spec/integration/api/v2010/account/sip/ip_access_control_list_spec.rb +21 -21
- data/spec/integration/api/v2010/account/token_spec.rb +2 -2
- data/spec/integration/api/v2010/account/transcription_spec.rb +11 -11
- data/spec/integration/api/v2010/account/usage/record/all_time_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/daily_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/last_month_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/monthly_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/this_month_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/today_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/yearly_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/yesterday_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/trigger_spec.rb +22 -22
- data/spec/integration/api/v2010/account/validation_request_spec.rb +5 -5
- data/spec/integration/api/v2010/account_spec.rb +4 -4
- data/spec/integration/chat/v1/credential_spec.rb +9 -9
- data/spec/integration/chat/v1/service/channel/invite_spec.rb +25 -25
- data/spec/integration/chat/v1/service/channel/member_spec.rb +34 -34
- data/spec/integration/chat/v1/service/channel/message_spec.rb +34 -34
- data/spec/integration/chat/v1/service/channel_spec.rb +17 -17
- data/spec/integration/chat/v1/service/role_spec.rb +21 -21
- data/spec/integration/chat/v1/service/user/user_channel_spec.rb +6 -6
- data/spec/integration/chat/v1/service/user_spec.rb +20 -20
- data/spec/integration/chat/v1/service_spec.rb +9 -9
- data/spec/integration/chat/v2/credential_spec.rb +9 -9
- data/spec/integration/chat/v2/service/binding_spec.rb +11 -11
- data/spec/integration/chat/v2/service/channel/invite_spec.rb +25 -25
- data/spec/integration/chat/v2/service/channel/member_spec.rb +31 -31
- data/spec/integration/chat/v2/service/channel/message_spec.rb +35 -35
- data/spec/integration/chat/v2/service/channel_spec.rb +17 -17
- data/spec/integration/chat/v2/service/role_spec.rb +21 -21
- data/spec/integration/chat/v2/service/user/user_binding_spec.rb +18 -18
- data/spec/integration/chat/v2/service/user/user_channel_spec.rb +6 -6
- data/spec/integration/chat/v2/service/user_spec.rb +20 -20
- data/spec/integration/chat/v2/service_spec.rb +9 -9
- data/spec/integration/fax/v1/fax/fax_media_spec.rb +10 -10
- data/spec/integration/fax/v1/fax_spec.rb +9 -9
- data/spec/integration/ip_messaging/v1/credential_spec.rb +9 -9
- data/spec/integration/ip_messaging/v1/service/channel/invite_spec.rb +25 -25
- data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +34 -34
- data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +34 -34
- data/spec/integration/ip_messaging/v1/service/channel_spec.rb +17 -17
- data/spec/integration/ip_messaging/v1/service/role_spec.rb +21 -21
- data/spec/integration/ip_messaging/v1/service/user/user_channel_spec.rb +6 -6
- data/spec/integration/ip_messaging/v1/service/user_spec.rb +20 -20
- data/spec/integration/ip_messaging/v1/service_spec.rb +9 -9
- data/spec/integration/ip_messaging/v2/credential_spec.rb +9 -9
- data/spec/integration/ip_messaging/v2/service/binding_spec.rb +11 -11
- data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +25 -25
- data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +31 -31
- data/spec/integration/ip_messaging/v2/service/channel/message_spec.rb +35 -35
- data/spec/integration/ip_messaging/v2/service/channel_spec.rb +17 -17
- data/spec/integration/ip_messaging/v2/service/role_spec.rb +21 -21
- data/spec/integration/ip_messaging/v2/service/user/user_binding_spec.rb +18 -18
- data/spec/integration/ip_messaging/v2/service/user/user_channel_spec.rb +6 -6
- data/spec/integration/ip_messaging/v2/service/user_spec.rb +20 -20
- data/spec/integration/ip_messaging/v2/service_spec.rb +9 -9
- data/spec/integration/lookups/v1/phone_number_spec.rb +12 -2
- data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +15 -15
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +17 -17
- data/spec/integration/messaging/v1/service/short_code_spec.rb +15 -15
- data/spec/integration/messaging/v1/service_spec.rb +9 -9
- data/spec/integration/monitor/v1/alert_spec.rb +4 -4
- data/spec/integration/monitor/v1/event_spec.rb +2 -2
- data/spec/integration/notify/v1/credential_spec.rb +9 -9
- data/spec/integration/notify/v1/service/binding_spec.rb +16 -16
- data/spec/integration/notify/v1/service/notification_spec.rb +3 -3
- data/spec/integration/notify/v1/service/segment_spec.rb +3 -3
- data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +19 -19
- data/spec/integration/notify/v1/service/user/user_binding_spec.rb +28 -28
- data/spec/integration/notify/v1/service/user_spec.rb +16 -16
- data/spec/integration/notify/v1/service_spec.rb +6 -6
- data/spec/integration/preview/acc_security/service/verification_check_spec.rb +5 -5
- data/spec/integration/preview/acc_security/service/verification_spec.rb +5 -5
- data/spec/integration/preview/acc_security/service_spec.rb +7 -7
- data/spec/integration/preview/bulk_exports/export/day_spec.rb +2 -2
- data/spec/integration/preview/bulk_exports/export_configuration_spec.rb +4 -4
- data/spec/integration/preview/bulk_exports/export_spec.rb +2 -2
- data/spec/integration/preview/deployed_devices/fleet/certificate_spec.rb +20 -20
- data/spec/integration/preview/deployed_devices/fleet/deployment_spec.rb +17 -17
- data/spec/integration/preview/deployed_devices/fleet/device_spec.rb +17 -17
- data/spec/integration/preview/deployed_devices/fleet/key_spec.rb +17 -17
- data/spec/integration/preview/deployed_devices/fleet_spec.rb +6 -6
- data/spec/integration/preview/hosted_numbers/authorization_document/dependent_hosted_number_order_spec.rb +3 -3
- data/spec/integration/preview/hosted_numbers/authorization_document_spec.rb +8 -8
- data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +11 -11
- data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +7 -7
- data/spec/integration/preview/marketplace/available_add_on_spec.rb +2 -2
- data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +11 -11
- data/spec/integration/preview/marketplace/installed_add_on_spec.rb +9 -9
- data/spec/integration/preview/proxy/service/phone_number_spec.rb +15 -15
- data/spec/integration/preview/proxy/service/session/interaction_spec.rb +10 -10
- data/spec/integration/preview/proxy/service/session/participant/message_interaction_spec.rb +20 -20
- data/spec/integration/preview/proxy/service/session/participant_spec.rb +29 -29
- data/spec/integration/preview/proxy/service/session_spec.rb +16 -16
- data/spec/integration/preview/proxy/service/short_code_spec.rb +15 -15
- data/spec/integration/preview/proxy/service_spec.rb +6 -6
- data/spec/integration/preview/studio/flow/engagement/step_spec.rb +10 -10
- data/spec/integration/preview/studio/flow/engagement_spec.rb +11 -11
- data/spec/integration/preview/studio/flow_spec.rb +4 -4
- data/spec/integration/preview/sync/service/document/document_permission_spec.rb +24 -24
- data/spec/integration/preview/sync/service/document_spec.rb +18 -18
- data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +28 -28
- data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +24 -24
- data/spec/integration/preview/sync/service/sync_list_spec.rb +13 -13
- data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +32 -32
- data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +24 -24
- data/spec/integration/preview/sync/service/sync_map_spec.rb +13 -13
- data/spec/integration/preview/sync/service_spec.rb +6 -6
- data/spec/integration/preview/understand/service/field_type/field_value_spec.rb +25 -25
- data/spec/integration/preview/understand/service/field_type_spec.rb +20 -20
- data/spec/integration/preview/understand/service/intent/field_spec.rb +25 -25
- data/spec/integration/preview/understand/service/intent/sample_spec.rb +31 -31
- data/spec/integration/preview/understand/service/intent_spec.rb +20 -20
- data/spec/integration/preview/understand/service/model_build_spec.rb +17 -17
- data/spec/integration/preview/understand/service/query_spec.rb +20 -20
- data/spec/integration/preview/understand/service_spec.rb +6 -6
- data/spec/integration/preview/wireless/command_spec.rb +5 -5
- data/spec/integration/preview/wireless/rate_plan_spec.rb +6 -6
- data/spec/integration/preview/wireless/sim/usage_spec.rb +2 -2
- data/spec/integration/preview/wireless/sim_spec.rb +4 -4
- data/spec/integration/pricing/v1/messaging/country_spec.rb +2 -2
- data/spec/integration/pricing/v1/phone_number/country_spec.rb +2 -2
- data/spec/integration/pricing/v1/voice/country_spec.rb +2 -2
- data/spec/integration/pricing/v1/voice/number_spec.rb +2 -2
- data/spec/integration/proxy/v1/service/phone_number_spec.rb +12 -12
- data/spec/integration/proxy/v1/service/session/interaction_spec.rb +16 -16
- data/spec/integration/proxy/v1/service/session/participant/message_interaction_spec.rb +20 -20
- data/spec/integration/proxy/v1/service/session/participant_spec.rb +29 -29
- data/spec/integration/proxy/v1/service/session_spec.rb +16 -16
- data/spec/integration/proxy/v1/service/short_code_spec.rb +15 -15
- data/spec/integration/proxy/v1/service_spec.rb +9 -9
- data/spec/integration/studio/v1/flow/engagement/step_spec.rb +10 -10
- data/spec/integration/studio/v1/flow/engagement_spec.rb +11 -11
- data/spec/integration/studio/v1/flow_spec.rb +4 -4
- data/spec/integration/sync/v1/service/document/document_permission_spec.rb +24 -24
- data/spec/integration/sync/v1/service/document_spec.rb +17 -17
- data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +25 -25
- data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +24 -24
- data/spec/integration/sync/v1/service/sync_list_spec.rb +17 -17
- data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +31 -31
- data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +24 -24
- data/spec/integration/sync/v1/service/sync_map_spec.rb +17 -17
- data/spec/integration/sync/v1/service/sync_stream/stream_message_spec.rb +7 -7
- data/spec/integration/sync/v1/service/sync_stream_spec.rb +17 -17
- data/spec/integration/sync/v1/service_spec.rb +6 -6
- data/spec/integration/taskrouter/v1/workspace/activity_spec.rb +20 -20
- data/spec/integration/taskrouter/v1/workspace/event_spec.rb +7 -7
- data/spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb +18 -18
- data/spec/integration/taskrouter/v1/workspace/task_channel_spec.rb +7 -7
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queues_statistics_spec.rb +3 -3
- data/spec/integration/taskrouter/v1/workspace/task_queue_spec.rb +22 -22
- data/spec/integration/taskrouter/v1/workspace/task_spec.rb +18 -18
- data/spec/integration/taskrouter/v1/workspace/worker/reservation_spec.rb +18 -18
- data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +18 -18
- data/spec/integration/taskrouter/v1/workspace/worker/worker_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/worker/workers_cumulative_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/worker/workers_real_time_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/worker/workers_statistics_spec.rb +2 -2
- data/spec/integration/taskrouter/v1/workspace/worker_spec.rb +20 -20
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_real_time_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +20 -20
- data/spec/integration/taskrouter/v1/workspace/workspace_cumulative_statistics_spec.rb +2 -2
- data/spec/integration/taskrouter/v1/workspace/workspace_real_time_statistics_spec.rb +2 -2
- data/spec/integration/taskrouter/v1/workspace/workspace_statistics_spec.rb +2 -2
- data/spec/integration/taskrouter/v1/workspace_spec.rb +9 -9
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +16 -16
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +16 -16
- data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +21 -21
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +16 -16
- data/spec/integration/trunking/v1/trunk_spec.rb +6 -6
- data/spec/integration/video/v1/composition_spec.rb +4 -4
- data/spec/integration/video/v1/recording_spec.rb +4 -4
- data/spec/integration/video/v1/room/recording_spec.rb +7 -7
- data/spec/integration/video/v1/room/room_participant/room_participant_published_track_spec.rb +10 -10
- data/spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb +10 -10
- data/spec/integration/video/v1/room/room_participant_spec.rb +11 -11
- data/spec/integration/video/v1/room_spec.rb +5 -5
- data/spec/integration/wireless/v1/command_spec.rb +5 -5
- data/spec/integration/wireless/v1/rate_plan_spec.rb +6 -6
- data/spec/integration/wireless/v1/sim/data_session_spec.rb +2 -2
- data/spec/integration/wireless/v1/sim/usage_record_spec.rb +2 -2
- data/spec/integration/wireless/v1/sim_spec.rb +4 -4
- metadata +2 -2
@@ -11,11 +11,11 @@ describe 'ShortCode' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.preview.proxy.services(
|
15
|
-
.short_codes.create(sid:
|
14
|
+
@client.preview.proxy.services('KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
15
|
+
.short_codes.create(sid: 'SCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
17
17
|
|
18
|
-
values = {'Sid' =>
|
18
|
+
values = {'Sid' => 'SCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', }
|
19
19
|
expect(
|
20
20
|
@holodeck.has_request?(Holodeck::Request.new(
|
21
21
|
method: 'post',
|
@@ -42,8 +42,8 @@ describe 'ShortCode' do
|
|
42
42
|
]
|
43
43
|
))
|
44
44
|
|
45
|
-
actual = @client.preview.proxy.services(
|
46
|
-
.short_codes.create(sid:
|
45
|
+
actual = @client.preview.proxy.services('KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
46
|
+
.short_codes.create(sid: 'SCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
|
47
47
|
|
48
48
|
expect(actual).to_not eq(nil)
|
49
49
|
end
|
@@ -52,8 +52,8 @@ describe 'ShortCode' do
|
|
52
52
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
53
53
|
|
54
54
|
expect {
|
55
|
-
@client.preview.proxy.services(
|
56
|
-
.short_codes(
|
55
|
+
@client.preview.proxy.services('KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
56
|
+
.short_codes('SCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
57
57
|
}.to raise_exception(Twilio::REST::TwilioError)
|
58
58
|
|
59
59
|
values = {}
|
@@ -70,8 +70,8 @@ describe 'ShortCode' do
|
|
70
70
|
nil,
|
71
71
|
))
|
72
72
|
|
73
|
-
actual = @client.preview.proxy.services(
|
74
|
-
.short_codes(
|
73
|
+
actual = @client.preview.proxy.services('KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
74
|
+
.short_codes('SCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
75
75
|
|
76
76
|
expect(actual).to eq(true)
|
77
77
|
end
|
@@ -80,7 +80,7 @@ describe 'ShortCode' do
|
|
80
80
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
81
81
|
|
82
82
|
expect {
|
83
|
-
@client.preview.proxy.services(
|
83
|
+
@client.preview.proxy.services('KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
84
84
|
.short_codes.list()
|
85
85
|
}.to raise_exception(Twilio::REST::TwilioError)
|
86
86
|
|
@@ -123,7 +123,7 @@ describe 'ShortCode' do
|
|
123
123
|
]
|
124
124
|
))
|
125
125
|
|
126
|
-
actual = @client.preview.proxy.services(
|
126
|
+
actual = @client.preview.proxy.services('KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
127
127
|
.short_codes.list()
|
128
128
|
|
129
129
|
expect(actual).to_not eq(nil)
|
@@ -133,8 +133,8 @@ describe 'ShortCode' do
|
|
133
133
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
134
134
|
|
135
135
|
expect {
|
136
|
-
@client.preview.proxy.services(
|
137
|
-
.short_codes(
|
136
|
+
@client.preview.proxy.services('KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
137
|
+
.short_codes('SCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
138
138
|
}.to raise_exception(Twilio::REST::TwilioError)
|
139
139
|
|
140
140
|
values = {}
|
@@ -163,8 +163,8 @@ describe 'ShortCode' do
|
|
163
163
|
]
|
164
164
|
))
|
165
165
|
|
166
|
-
actual = @client.preview.proxy.services(
|
167
|
-
.short_codes(
|
166
|
+
actual = @client.preview.proxy.services('KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
167
|
+
.short_codes('SCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
168
168
|
|
169
169
|
expect(actual).to_not eq(nil)
|
170
170
|
end
|
@@ -11,7 +11,7 @@ describe 'Service' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.preview.proxy.services(
|
14
|
+
@client.preview.proxy.services('KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
15
15
|
}.to raise_exception(Twilio::REST::TwilioError)
|
16
16
|
|
17
17
|
values = {}
|
@@ -44,7 +44,7 @@ describe 'Service' do
|
|
44
44
|
]
|
45
45
|
))
|
46
46
|
|
47
|
-
actual = @client.preview.proxy.services(
|
47
|
+
actual = @client.preview.proxy.services('KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
48
48
|
|
49
49
|
expect(actual).to_not eq(nil)
|
50
50
|
end
|
@@ -134,7 +134,7 @@ describe 'Service' do
|
|
134
134
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
135
135
|
|
136
136
|
expect {
|
137
|
-
@client.preview.proxy.services(
|
137
|
+
@client.preview.proxy.services('KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
138
138
|
}.to raise_exception(Twilio::REST::TwilioError)
|
139
139
|
|
140
140
|
values = {}
|
@@ -151,7 +151,7 @@ describe 'Service' do
|
|
151
151
|
nil,
|
152
152
|
))
|
153
153
|
|
154
|
-
actual = @client.preview.proxy.services(
|
154
|
+
actual = @client.preview.proxy.services('KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
155
155
|
|
156
156
|
expect(actual).to eq(true)
|
157
157
|
end
|
@@ -160,7 +160,7 @@ describe 'Service' do
|
|
160
160
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
161
161
|
|
162
162
|
expect {
|
163
|
-
@client.preview.proxy.services(
|
163
|
+
@client.preview.proxy.services('KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
|
164
164
|
}.to raise_exception(Twilio::REST::TwilioError)
|
165
165
|
|
166
166
|
values = {}
|
@@ -193,7 +193,7 @@ describe 'Service' do
|
|
193
193
|
]
|
194
194
|
))
|
195
195
|
|
196
|
-
actual = @client.preview.proxy.services(
|
196
|
+
actual = @client.preview.proxy.services('KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
|
197
197
|
|
198
198
|
expect(actual).to_not eq(nil)
|
199
199
|
end
|
@@ -11,8 +11,8 @@ describe 'Step' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.preview.studio.flows(
|
15
|
-
.engagements(
|
14
|
+
@client.preview.studio.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
15
|
+
.engagements('FNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
16
16
|
.steps.list()
|
17
17
|
}.to raise_exception(Twilio::REST::TwilioError)
|
18
18
|
|
@@ -43,8 +43,8 @@ describe 'Step' do
|
|
43
43
|
]
|
44
44
|
))
|
45
45
|
|
46
|
-
actual = @client.preview.studio.flows(
|
47
|
-
.engagements(
|
46
|
+
actual = @client.preview.studio.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
47
|
+
.engagements('FNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
48
48
|
.steps.list()
|
49
49
|
|
50
50
|
expect(actual).to_not eq(nil)
|
@@ -54,9 +54,9 @@ describe 'Step' do
|
|
54
54
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
55
55
|
|
56
56
|
expect {
|
57
|
-
@client.preview.studio.flows(
|
58
|
-
.engagements(
|
59
|
-
.steps(
|
57
|
+
@client.preview.studio.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
58
|
+
.engagements('FNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
59
|
+
.steps('FTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
60
60
|
}.to raise_exception(Twilio::REST::TwilioError)
|
61
61
|
|
62
62
|
values = {}
|
@@ -87,9 +87,9 @@ describe 'Step' do
|
|
87
87
|
]
|
88
88
|
))
|
89
89
|
|
90
|
-
actual = @client.preview.studio.flows(
|
91
|
-
.engagements(
|
92
|
-
.steps(
|
90
|
+
actual = @client.preview.studio.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
91
|
+
.engagements('FNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
92
|
+
.steps('FTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
93
93
|
|
94
94
|
expect(actual).to_not eq(nil)
|
95
95
|
end
|
@@ -11,7 +11,7 @@ describe 'Engagement' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.preview.studio.flows(
|
14
|
+
@client.preview.studio.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
15
15
|
.engagements.list()
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
17
17
|
|
@@ -42,7 +42,7 @@ describe 'Engagement' do
|
|
42
42
|
]
|
43
43
|
))
|
44
44
|
|
45
|
-
actual = @client.preview.studio.flows(
|
45
|
+
actual = @client.preview.studio.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
46
46
|
.engagements.list()
|
47
47
|
|
48
48
|
expect(actual).to_not eq(nil)
|
@@ -52,8 +52,8 @@ describe 'Engagement' do
|
|
52
52
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
53
53
|
|
54
54
|
expect {
|
55
|
-
@client.preview.studio.flows(
|
56
|
-
.engagements(
|
55
|
+
@client.preview.studio.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
56
|
+
.engagements('FNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
57
57
|
}.to raise_exception(Twilio::REST::TwilioError)
|
58
58
|
|
59
59
|
values = {}
|
@@ -86,8 +86,8 @@ describe 'Engagement' do
|
|
86
86
|
]
|
87
87
|
))
|
88
88
|
|
89
|
-
actual = @client.preview.studio.flows(
|
90
|
-
.engagements(
|
89
|
+
actual = @client.preview.studio.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
90
|
+
.engagements('FNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
91
91
|
|
92
92
|
expect(actual).to_not eq(nil)
|
93
93
|
end
|
@@ -96,11 +96,11 @@ describe 'Engagement' do
|
|
96
96
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
97
97
|
|
98
98
|
expect {
|
99
|
-
@client.preview.studio.flows(
|
100
|
-
.engagements.create(to:
|
99
|
+
@client.preview.studio.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
100
|
+
.engagements.create(to: '+15558675310', from: '+15017122661')
|
101
101
|
}.to raise_exception(Twilio::REST::TwilioError)
|
102
102
|
|
103
|
-
values = {'To' =>
|
103
|
+
values = {'To' => '+15558675310', 'From' => '+15017122661', }
|
104
104
|
expect(
|
105
105
|
@holodeck.has_request?(Holodeck::Request.new(
|
106
106
|
method: 'post',
|
@@ -135,8 +135,8 @@ describe 'Engagement' do
|
|
135
135
|
]
|
136
136
|
))
|
137
137
|
|
138
|
-
actual = @client.preview.studio.flows(
|
139
|
-
.engagements.create(to:
|
138
|
+
actual = @client.preview.studio.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
139
|
+
.engagements.create(to: '+15558675310', from: '+15017122661')
|
140
140
|
|
141
141
|
expect(actual).to_not eq(nil)
|
142
142
|
end
|
@@ -50,7 +50,7 @@ describe 'Flow' do
|
|
50
50
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
51
51
|
|
52
52
|
expect {
|
53
|
-
@client.preview.studio.flows(
|
53
|
+
@client.preview.studio.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
54
54
|
}.to raise_exception(Twilio::REST::TwilioError)
|
55
55
|
|
56
56
|
values = {}
|
@@ -82,7 +82,7 @@ describe 'Flow' do
|
|
82
82
|
]
|
83
83
|
))
|
84
84
|
|
85
|
-
actual = @client.preview.studio.flows(
|
85
|
+
actual = @client.preview.studio.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
86
86
|
|
87
87
|
expect(actual).to_not eq(nil)
|
88
88
|
end
|
@@ -91,7 +91,7 @@ describe 'Flow' do
|
|
91
91
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
92
92
|
|
93
93
|
expect {
|
94
|
-
@client.preview.studio.flows(
|
94
|
+
@client.preview.studio.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
95
95
|
}.to raise_exception(Twilio::REST::TwilioError)
|
96
96
|
|
97
97
|
values = {}
|
@@ -108,7 +108,7 @@ describe 'Flow' do
|
|
108
108
|
nil,
|
109
109
|
))
|
110
110
|
|
111
|
-
actual = @client.preview.studio.flows(
|
111
|
+
actual = @client.preview.studio.flows('FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
112
112
|
|
113
113
|
expect(actual).to eq(true)
|
114
114
|
end
|
@@ -11,9 +11,9 @@ describe 'DocumentPermission' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.preview.sync.services(
|
15
|
-
.documents(
|
16
|
-
.document_permissions(
|
14
|
+
@client.preview.sync.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
15
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
16
|
+
.document_permissions('identity').fetch()
|
17
17
|
}.to raise_exception(Twilio::REST::TwilioError)
|
18
18
|
|
19
19
|
values = {}
|
@@ -41,9 +41,9 @@ describe 'DocumentPermission' do
|
|
41
41
|
]
|
42
42
|
))
|
43
43
|
|
44
|
-
actual = @client.preview.sync.services(
|
45
|
-
.documents(
|
46
|
-
.document_permissions(
|
44
|
+
actual = @client.preview.sync.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
45
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
46
|
+
.document_permissions('identity').fetch()
|
47
47
|
|
48
48
|
expect(actual).to_not eq(nil)
|
49
49
|
end
|
@@ -52,9 +52,9 @@ describe 'DocumentPermission' do
|
|
52
52
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
53
53
|
|
54
54
|
expect {
|
55
|
-
@client.preview.sync.services(
|
56
|
-
.documents(
|
57
|
-
.document_permissions(
|
55
|
+
@client.preview.sync.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
56
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
57
|
+
.document_permissions('identity').delete()
|
58
58
|
}.to raise_exception(Twilio::REST::TwilioError)
|
59
59
|
|
60
60
|
values = {}
|
@@ -71,9 +71,9 @@ describe 'DocumentPermission' do
|
|
71
71
|
nil,
|
72
72
|
))
|
73
73
|
|
74
|
-
actual = @client.preview.sync.services(
|
75
|
-
.documents(
|
76
|
-
.document_permissions(
|
74
|
+
actual = @client.preview.sync.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
75
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
76
|
+
.document_permissions('identity').delete()
|
77
77
|
|
78
78
|
expect(actual).to eq(true)
|
79
79
|
end
|
@@ -82,8 +82,8 @@ describe 'DocumentPermission' do
|
|
82
82
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
83
83
|
|
84
84
|
expect {
|
85
|
-
@client.preview.sync.services(
|
86
|
-
.documents(
|
85
|
+
@client.preview.sync.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
86
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
87
87
|
.document_permissions.list()
|
88
88
|
}.to raise_exception(Twilio::REST::TwilioError)
|
89
89
|
|
@@ -114,8 +114,8 @@ describe 'DocumentPermission' do
|
|
114
114
|
]
|
115
115
|
))
|
116
116
|
|
117
|
-
actual = @client.preview.sync.services(
|
118
|
-
.documents(
|
117
|
+
actual = @client.preview.sync.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
118
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
119
119
|
.document_permissions.list()
|
120
120
|
|
121
121
|
expect(actual).to_not eq(nil)
|
@@ -151,8 +151,8 @@ describe 'DocumentPermission' do
|
|
151
151
|
]
|
152
152
|
))
|
153
153
|
|
154
|
-
actual = @client.preview.sync.services(
|
155
|
-
.documents(
|
154
|
+
actual = @client.preview.sync.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
155
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
156
156
|
.document_permissions.list()
|
157
157
|
|
158
158
|
expect(actual).to_not eq(nil)
|
@@ -162,9 +162,9 @@ describe 'DocumentPermission' do
|
|
162
162
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
163
163
|
|
164
164
|
expect {
|
165
|
-
@client.preview.sync.services(
|
166
|
-
.documents(
|
167
|
-
.document_permissions(
|
165
|
+
@client.preview.sync.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
166
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
167
|
+
.document_permissions('identity').update(read: true, write: true, manage: true)
|
168
168
|
}.to raise_exception(Twilio::REST::TwilioError)
|
169
169
|
|
170
170
|
values = {'Read' => true, 'Write' => true, 'Manage' => true, }
|
@@ -193,9 +193,9 @@ describe 'DocumentPermission' do
|
|
193
193
|
]
|
194
194
|
))
|
195
195
|
|
196
|
-
actual = @client.preview.sync.services(
|
197
|
-
.documents(
|
198
|
-
.document_permissions(
|
196
|
+
actual = @client.preview.sync.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
197
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
198
|
+
.document_permissions('identity').update(read: true, write: true, manage: true)
|
199
199
|
|
200
200
|
expect(actual).to_not eq(nil)
|
201
201
|
end
|
@@ -11,8 +11,8 @@ describe 'Document' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.preview.sync.services(
|
15
|
-
.documents(
|
14
|
+
@client.preview.sync.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
15
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
17
17
|
|
18
18
|
values = {}
|
@@ -45,8 +45,8 @@ describe 'Document' do
|
|
45
45
|
]
|
46
46
|
))
|
47
47
|
|
48
|
-
actual = @client.preview.sync.services(
|
49
|
-
.documents(
|
48
|
+
actual = @client.preview.sync.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
49
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
50
50
|
|
51
51
|
expect(actual).to_not eq(nil)
|
52
52
|
end
|
@@ -55,8 +55,8 @@ describe 'Document' do
|
|
55
55
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
56
56
|
|
57
57
|
expect {
|
58
|
-
@client.preview.sync.services(
|
59
|
-
.documents(
|
58
|
+
@client.preview.sync.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
59
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
60
60
|
}.to raise_exception(Twilio::REST::TwilioError)
|
61
61
|
|
62
62
|
values = {}
|
@@ -73,8 +73,8 @@ describe 'Document' do
|
|
73
73
|
nil,
|
74
74
|
))
|
75
75
|
|
76
|
-
actual = @client.preview.sync.services(
|
77
|
-
.documents(
|
76
|
+
actual = @client.preview.sync.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
77
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
78
78
|
|
79
79
|
expect(actual).to eq(true)
|
80
80
|
end
|
@@ -83,7 +83,7 @@ describe 'Document' do
|
|
83
83
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
84
84
|
|
85
85
|
expect {
|
86
|
-
@client.preview.sync.services(
|
86
|
+
@client.preview.sync.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
87
87
|
.documents.create()
|
88
88
|
}.to raise_exception(Twilio::REST::TwilioError)
|
89
89
|
|
@@ -117,7 +117,7 @@ describe 'Document' do
|
|
117
117
|
]
|
118
118
|
))
|
119
119
|
|
120
|
-
actual = @client.preview.sync.services(
|
120
|
+
actual = @client.preview.sync.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
121
121
|
.documents.create()
|
122
122
|
|
123
123
|
expect(actual).to_not eq(nil)
|
@@ -127,7 +127,7 @@ describe 'Document' do
|
|
127
127
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
128
128
|
|
129
129
|
expect {
|
130
|
-
@client.preview.sync.services(
|
130
|
+
@client.preview.sync.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
131
131
|
.documents.list()
|
132
132
|
}.to raise_exception(Twilio::REST::TwilioError)
|
133
133
|
|
@@ -158,7 +158,7 @@ describe 'Document' do
|
|
158
158
|
]
|
159
159
|
))
|
160
160
|
|
161
|
-
actual = @client.preview.sync.services(
|
161
|
+
actual = @client.preview.sync.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
162
162
|
.documents.list()
|
163
163
|
|
164
164
|
expect(actual).to_not eq(nil)
|
@@ -199,7 +199,7 @@ describe 'Document' do
|
|
199
199
|
]
|
200
200
|
))
|
201
201
|
|
202
|
-
actual = @client.preview.sync.services(
|
202
|
+
actual = @client.preview.sync.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
203
203
|
.documents.list()
|
204
204
|
|
205
205
|
expect(actual).to_not eq(nil)
|
@@ -209,11 +209,11 @@ describe 'Document' do
|
|
209
209
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
210
210
|
|
211
211
|
expect {
|
212
|
-
@client.preview.sync.services(
|
213
|
-
.documents(
|
212
|
+
@client.preview.sync.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
213
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update(data: {})
|
214
214
|
}.to raise_exception(Twilio::REST::TwilioError)
|
215
215
|
|
216
|
-
values = {'Data' => Twilio.serialize_object(
|
216
|
+
values = {'Data' => Twilio.serialize_object({}), }
|
217
217
|
expect(
|
218
218
|
@holodeck.has_request?(Holodeck::Request.new(
|
219
219
|
method: 'post',
|
@@ -244,8 +244,8 @@ describe 'Document' do
|
|
244
244
|
]
|
245
245
|
))
|
246
246
|
|
247
|
-
actual = @client.preview.sync.services(
|
248
|
-
.documents(
|
247
|
+
actual = @client.preview.sync.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
248
|
+
.documents('ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update(data: {})
|
249
249
|
|
250
250
|
expect(actual).to_not eq(nil)
|
251
251
|
end
|