twilio-ruby 5.6.3 → 5.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,8 +11,8 @@ describe 'IncomingPhoneNumber' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.api.v2010.accounts(
|
|
15
|
-
.incoming_phone_numbers(
|
|
14
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
15
|
+
.incoming_phone_numbers('PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
|
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
17
17
|
|
|
18
18
|
values = {}
|
|
@@ -66,8 +66,8 @@ describe 'IncomingPhoneNumber' do
|
|
|
66
66
|
]
|
|
67
67
|
))
|
|
68
68
|
|
|
69
|
-
actual = @client.api.v2010.accounts(
|
|
70
|
-
.incoming_phone_numbers(
|
|
69
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
70
|
+
.incoming_phone_numbers('PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
|
|
71
71
|
|
|
72
72
|
expect(actual).to_not eq(nil)
|
|
73
73
|
end
|
|
@@ -76,8 +76,8 @@ describe 'IncomingPhoneNumber' do
|
|
|
76
76
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
77
77
|
|
|
78
78
|
expect {
|
|
79
|
-
@client.api.v2010.accounts(
|
|
80
|
-
.incoming_phone_numbers(
|
|
79
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
80
|
+
.incoming_phone_numbers('PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
|
81
81
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
82
82
|
|
|
83
83
|
values = {}
|
|
@@ -131,8 +131,8 @@ describe 'IncomingPhoneNumber' do
|
|
|
131
131
|
]
|
|
132
132
|
))
|
|
133
133
|
|
|
134
|
-
actual = @client.api.v2010.accounts(
|
|
135
|
-
.incoming_phone_numbers(
|
|
134
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
135
|
+
.incoming_phone_numbers('PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
|
136
136
|
|
|
137
137
|
expect(actual).to_not eq(nil)
|
|
138
138
|
end
|
|
@@ -141,8 +141,8 @@ describe 'IncomingPhoneNumber' do
|
|
|
141
141
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
142
142
|
|
|
143
143
|
expect {
|
|
144
|
-
@client.api.v2010.accounts(
|
|
145
|
-
.incoming_phone_numbers(
|
|
144
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
145
|
+
.incoming_phone_numbers('PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
|
146
146
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
147
147
|
|
|
148
148
|
values = {}
|
|
@@ -159,8 +159,8 @@ describe 'IncomingPhoneNumber' do
|
|
|
159
159
|
nil,
|
|
160
160
|
))
|
|
161
161
|
|
|
162
|
-
actual = @client.api.v2010.accounts(
|
|
163
|
-
.incoming_phone_numbers(
|
|
162
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
163
|
+
.incoming_phone_numbers('PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
|
164
164
|
|
|
165
165
|
expect(actual).to eq(true)
|
|
166
166
|
end
|
|
@@ -169,7 +169,7 @@ describe 'IncomingPhoneNumber' do
|
|
|
169
169
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
170
170
|
|
|
171
171
|
expect {
|
|
172
|
-
@client.api.v2010.accounts(
|
|
172
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
173
173
|
.incoming_phone_numbers.list()
|
|
174
174
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
175
175
|
|
|
@@ -239,7 +239,7 @@ describe 'IncomingPhoneNumber' do
|
|
|
239
239
|
]
|
|
240
240
|
))
|
|
241
241
|
|
|
242
|
-
actual = @client.api.v2010.accounts(
|
|
242
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
243
243
|
.incoming_phone_numbers.list()
|
|
244
244
|
|
|
245
245
|
expect(actual).to_not eq(nil)
|
|
@@ -266,7 +266,7 @@ describe 'IncomingPhoneNumber' do
|
|
|
266
266
|
]
|
|
267
267
|
))
|
|
268
268
|
|
|
269
|
-
actual = @client.api.v2010.accounts(
|
|
269
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
270
270
|
.incoming_phone_numbers.list()
|
|
271
271
|
|
|
272
272
|
expect(actual).to_not eq(nil)
|
|
@@ -276,7 +276,7 @@ describe 'IncomingPhoneNumber' do
|
|
|
276
276
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
277
277
|
|
|
278
278
|
expect {
|
|
279
|
-
@client.api.v2010.accounts(
|
|
279
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
280
280
|
.incoming_phone_numbers.create()
|
|
281
281
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
282
282
|
|
|
@@ -331,7 +331,7 @@ describe 'IncomingPhoneNumber' do
|
|
|
331
331
|
]
|
|
332
332
|
))
|
|
333
333
|
|
|
334
|
-
actual = @client.api.v2010.accounts(
|
|
334
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
335
335
|
.incoming_phone_numbers.create()
|
|
336
336
|
|
|
337
337
|
expect(actual).to_not eq(nil)
|
|
@@ -11,8 +11,8 @@ describe 'Key' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.api.v2010.accounts(
|
|
15
|
-
.keys(
|
|
14
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
15
|
+
.keys('SKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
17
17
|
|
|
18
18
|
values = {}
|
|
@@ -36,8 +36,8 @@ describe 'Key' do
|
|
|
36
36
|
]
|
|
37
37
|
))
|
|
38
38
|
|
|
39
|
-
actual = @client.api.v2010.accounts(
|
|
40
|
-
.keys(
|
|
39
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
40
|
+
.keys('SKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
|
41
41
|
|
|
42
42
|
expect(actual).to_not eq(nil)
|
|
43
43
|
end
|
|
@@ -46,8 +46,8 @@ describe 'Key' do
|
|
|
46
46
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
47
47
|
|
|
48
48
|
expect {
|
|
49
|
-
@client.api.v2010.accounts(
|
|
50
|
-
.keys(
|
|
49
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
50
|
+
.keys('SKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
|
|
51
51
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
52
52
|
|
|
53
53
|
values = {}
|
|
@@ -71,8 +71,8 @@ describe 'Key' do
|
|
|
71
71
|
]
|
|
72
72
|
))
|
|
73
73
|
|
|
74
|
-
actual = @client.api.v2010.accounts(
|
|
75
|
-
.keys(
|
|
74
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
75
|
+
.keys('SKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
|
|
76
76
|
|
|
77
77
|
expect(actual).to_not eq(nil)
|
|
78
78
|
end
|
|
@@ -81,8 +81,8 @@ describe 'Key' do
|
|
|
81
81
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
82
82
|
|
|
83
83
|
expect {
|
|
84
|
-
@client.api.v2010.accounts(
|
|
85
|
-
.keys(
|
|
84
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
85
|
+
.keys('SKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
|
86
86
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
87
87
|
|
|
88
88
|
values = {}
|
|
@@ -99,8 +99,8 @@ describe 'Key' do
|
|
|
99
99
|
nil,
|
|
100
100
|
))
|
|
101
101
|
|
|
102
|
-
actual = @client.api.v2010.accounts(
|
|
103
|
-
.keys(
|
|
102
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
103
|
+
.keys('SKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
|
104
104
|
|
|
105
105
|
expect(actual).to eq(true)
|
|
106
106
|
end
|
|
@@ -109,7 +109,7 @@ describe 'Key' do
|
|
|
109
109
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
110
110
|
|
|
111
111
|
expect {
|
|
112
|
-
@client.api.v2010.accounts(
|
|
112
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
113
113
|
.keys.list()
|
|
114
114
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
115
115
|
|
|
@@ -146,7 +146,7 @@ describe 'Key' do
|
|
|
146
146
|
]
|
|
147
147
|
))
|
|
148
148
|
|
|
149
|
-
actual = @client.api.v2010.accounts(
|
|
149
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
150
150
|
.keys.list()
|
|
151
151
|
|
|
152
152
|
expect(actual).to_not eq(nil)
|
|
@@ -170,7 +170,7 @@ describe 'Key' do
|
|
|
170
170
|
]
|
|
171
171
|
))
|
|
172
172
|
|
|
173
|
-
actual = @client.api.v2010.accounts(
|
|
173
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
174
174
|
.keys.list()
|
|
175
175
|
|
|
176
176
|
expect(actual).to_not eq(nil)
|
|
@@ -11,8 +11,8 @@ describe 'Feedback' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.api.v2010.accounts(
|
|
15
|
-
.messages(
|
|
14
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
15
|
+
.messages('MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
16
16
|
.feedback.create()
|
|
17
17
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
18
18
|
|
|
@@ -39,8 +39,8 @@ describe 'Feedback' do
|
|
|
39
39
|
]
|
|
40
40
|
))
|
|
41
41
|
|
|
42
|
-
actual = @client.api.v2010.accounts(
|
|
43
|
-
.messages(
|
|
42
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
43
|
+
.messages('MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
44
44
|
.feedback.create()
|
|
45
45
|
|
|
46
46
|
expect(actual).to_not eq(nil)
|
|
@@ -11,9 +11,9 @@ describe 'Media' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.api.v2010.accounts(
|
|
15
|
-
.messages(
|
|
16
|
-
.media(
|
|
14
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
15
|
+
.messages('MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
16
|
+
.media('MEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
|
17
17
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
18
18
|
|
|
19
19
|
values = {}
|
|
@@ -30,9 +30,9 @@ describe 'Media' do
|
|
|
30
30
|
nil,
|
|
31
31
|
))
|
|
32
32
|
|
|
33
|
-
actual = @client.api.v2010.accounts(
|
|
34
|
-
.messages(
|
|
35
|
-
.media(
|
|
33
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
34
|
+
.messages('MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
35
|
+
.media('MEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
|
36
36
|
|
|
37
37
|
expect(actual).to eq(true)
|
|
38
38
|
end
|
|
@@ -41,9 +41,9 @@ describe 'Media' do
|
|
|
41
41
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
42
42
|
|
|
43
43
|
expect {
|
|
44
|
-
@client.api.v2010.accounts(
|
|
45
|
-
.messages(
|
|
46
|
-
.media(
|
|
44
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
45
|
+
.messages('MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
46
|
+
.media('MEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
|
47
47
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
48
48
|
|
|
49
49
|
values = {}
|
|
@@ -70,9 +70,9 @@ describe 'Media' do
|
|
|
70
70
|
]
|
|
71
71
|
))
|
|
72
72
|
|
|
73
|
-
actual = @client.api.v2010.accounts(
|
|
74
|
-
.messages(
|
|
75
|
-
.media(
|
|
73
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
74
|
+
.messages('MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
75
|
+
.media('MEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
|
76
76
|
|
|
77
77
|
expect(actual).to_not eq(nil)
|
|
78
78
|
end
|
|
@@ -81,8 +81,8 @@ describe 'Media' do
|
|
|
81
81
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
82
82
|
|
|
83
83
|
expect {
|
|
84
|
-
@client.api.v2010.accounts(
|
|
85
|
-
.messages(
|
|
84
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
85
|
+
.messages('MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
86
86
|
.media.list()
|
|
87
87
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
88
88
|
|
|
@@ -125,8 +125,8 @@ describe 'Media' do
|
|
|
125
125
|
]
|
|
126
126
|
))
|
|
127
127
|
|
|
128
|
-
actual = @client.api.v2010.accounts(
|
|
129
|
-
.messages(
|
|
128
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
129
|
+
.messages('MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
130
130
|
.media.list()
|
|
131
131
|
|
|
132
132
|
expect(actual).to_not eq(nil)
|
|
@@ -153,8 +153,8 @@ describe 'Media' do
|
|
|
153
153
|
]
|
|
154
154
|
))
|
|
155
155
|
|
|
156
|
-
actual = @client.api.v2010.accounts(
|
|
157
|
-
.messages(
|
|
156
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
157
|
+
.messages('MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
158
158
|
.media.list()
|
|
159
159
|
|
|
160
160
|
expect(actual).to_not eq(nil)
|
|
@@ -11,11 +11,11 @@ describe 'Message' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.api.v2010.accounts(
|
|
15
|
-
.messages.create(to:
|
|
14
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
15
|
+
.messages.create(to: '+15558675310')
|
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
17
17
|
|
|
18
|
-
values = {'To' =>
|
|
18
|
+
values = {'To' => '+15558675310', }
|
|
19
19
|
expect(
|
|
20
20
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
21
21
|
method: 'post',
|
|
@@ -55,8 +55,8 @@ describe 'Message' do
|
|
|
55
55
|
]
|
|
56
56
|
))
|
|
57
57
|
|
|
58
|
-
actual = @client.api.v2010.accounts(
|
|
59
|
-
.messages.create(to:
|
|
58
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
59
|
+
.messages.create(to: '+15558675310')
|
|
60
60
|
|
|
61
61
|
expect(actual).to_not eq(nil)
|
|
62
62
|
end
|
|
@@ -65,8 +65,8 @@ describe 'Message' do
|
|
|
65
65
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
66
66
|
|
|
67
67
|
expect {
|
|
68
|
-
@client.api.v2010.accounts(
|
|
69
|
-
.messages(
|
|
68
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
69
|
+
.messages('MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
|
70
70
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
71
71
|
|
|
72
72
|
values = {}
|
|
@@ -83,8 +83,8 @@ describe 'Message' do
|
|
|
83
83
|
nil,
|
|
84
84
|
))
|
|
85
85
|
|
|
86
|
-
actual = @client.api.v2010.accounts(
|
|
87
|
-
.messages(
|
|
86
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
87
|
+
.messages('MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
|
88
88
|
|
|
89
89
|
expect(actual).to eq(true)
|
|
90
90
|
end
|
|
@@ -93,8 +93,8 @@ describe 'Message' do
|
|
|
93
93
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
94
94
|
|
|
95
95
|
expect {
|
|
96
|
-
@client.api.v2010.accounts(
|
|
97
|
-
.messages(
|
|
96
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
97
|
+
.messages('MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
|
98
98
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
99
99
|
|
|
100
100
|
values = {}
|
|
@@ -136,8 +136,8 @@ describe 'Message' do
|
|
|
136
136
|
]
|
|
137
137
|
))
|
|
138
138
|
|
|
139
|
-
actual = @client.api.v2010.accounts(
|
|
140
|
-
.messages(
|
|
139
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
140
|
+
.messages('MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
|
141
141
|
|
|
142
142
|
expect(actual).to_not eq(nil)
|
|
143
143
|
end
|
|
@@ -146,7 +146,7 @@ describe 'Message' do
|
|
|
146
146
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
147
147
|
|
|
148
148
|
expect {
|
|
149
|
-
@client.api.v2010.accounts(
|
|
149
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
150
150
|
.messages.list()
|
|
151
151
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
152
152
|
|
|
@@ -204,7 +204,7 @@ describe 'Message' do
|
|
|
204
204
|
]
|
|
205
205
|
))
|
|
206
206
|
|
|
207
|
-
actual = @client.api.v2010.accounts(
|
|
207
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
208
208
|
.messages.list()
|
|
209
209
|
|
|
210
210
|
expect(actual).to_not eq(nil)
|
|
@@ -231,7 +231,7 @@ describe 'Message' do
|
|
|
231
231
|
]
|
|
232
232
|
))
|
|
233
233
|
|
|
234
|
-
actual = @client.api.v2010.accounts(
|
|
234
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
235
235
|
.messages.list()
|
|
236
236
|
|
|
237
237
|
expect(actual).to_not eq(nil)
|
|
@@ -241,11 +241,11 @@ describe 'Message' do
|
|
|
241
241
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
242
242
|
|
|
243
243
|
expect {
|
|
244
|
-
@client.api.v2010.accounts(
|
|
245
|
-
.messages(
|
|
244
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
245
|
+
.messages('MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update(body: 'body')
|
|
246
246
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
247
247
|
|
|
248
|
-
values = {'Body' =>
|
|
248
|
+
values = {'Body' => 'body', }
|
|
249
249
|
expect(
|
|
250
250
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
251
251
|
method: 'post',
|
|
@@ -285,8 +285,8 @@ describe 'Message' do
|
|
|
285
285
|
]
|
|
286
286
|
))
|
|
287
287
|
|
|
288
|
-
actual = @client.api.v2010.accounts(
|
|
289
|
-
.messages(
|
|
288
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
289
|
+
.messages('MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update(body: 'body')
|
|
290
290
|
|
|
291
291
|
expect(actual).to_not eq(nil)
|
|
292
292
|
end
|
|
@@ -11,7 +11,7 @@ describe 'NewKey' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.api.v2010.accounts(
|
|
14
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
15
15
|
.new_keys.create()
|
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
17
17
|
|
|
@@ -37,7 +37,7 @@ describe 'NewKey' do
|
|
|
37
37
|
]
|
|
38
38
|
))
|
|
39
39
|
|
|
40
|
-
actual = @client.api.v2010.accounts(
|
|
40
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
41
41
|
.new_keys.create()
|
|
42
42
|
|
|
43
43
|
expect(actual).to_not eq(nil)
|
|
@@ -11,7 +11,7 @@ describe 'NewSigningKey' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.api.v2010.accounts(
|
|
14
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
15
15
|
.new_signing_keys.create()
|
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
17
17
|
|
|
@@ -37,7 +37,7 @@ describe 'NewSigningKey' do
|
|
|
37
37
|
]
|
|
38
38
|
))
|
|
39
39
|
|
|
40
|
-
actual = @client.api.v2010.accounts(
|
|
40
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
|
41
41
|
.new_signing_keys.create()
|
|
42
42
|
|
|
43
43
|
expect(actual).to_not eq(nil)
|