twilio-ruby 5.7.2 → 5.8.0
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/.travis.yml +4 -0
- data/CHANGES.md +19 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/framework/error.rb +20 -6
- data/lib/twilio-ruby/framework/version.rb +1 -10
- data/lib/twilio-ruby/jwt/access_token.rb +3 -1
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +0 -7
- data/lib/twilio-ruby/rest/preview.rb +11 -3
- data/lib/twilio-ruby/rest/preview/understand.rb +6 -6
- data/lib/twilio-ruby/rest/preview/understand/{service.rb → assistant.rb} +94 -55
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/field_type.rb +33 -23
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/field_type/field_value.rb +30 -22
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/intent.rb +39 -25
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/intent/field.rb +20 -20
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/intent/sample.rb +45 -27
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/model_build.rb +21 -21
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/query.rb +31 -26
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +6 -2
- data/lib/twilio-ruby/rest/video/v1/recording.rb +1 -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 +7 -7
- data/spec/integration/api/v2010/account/address_spec.rb +22 -22
- data/spec/integration/api/v2010/account/application_spec.rb +22 -22
- data/spec/integration/api/v2010/account/authorized_connect_app_spec.rb +9 -9
- data/spec/integration/api/v2010/account/available_phone_number/local_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number/machine_to_machine_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number/mobile_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number/national_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number/shared_cost_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number/toll_free_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number/voip_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number_spec.rb +7 -7
- data/spec/integration/api/v2010/account/call/feedback_spec.rb +15 -15
- data/spec/integration/api/v2010/account/call/feedback_summary_spec.rb +13 -13
- data/spec/integration/api/v2010/account/call/notification_spec.rb +21 -21
- data/spec/integration/api/v2010/account/call/recording_spec.rb +21 -21
- data/spec/integration/api/v2010/account/call_spec.rb +22 -22
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +35 -35
- data/spec/integration/api/v2010/account/conference_spec.rb +14 -14
- data/spec/integration/api/v2010/account/connect_app_spec.rb +14 -14
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +19 -19
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +29 -29
- data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +7 -7
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +7 -7
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +7 -7
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +22 -22
- data/spec/integration/api/v2010/account/key_spec.rb +19 -19
- data/spec/integration/api/v2010/account/message/feedback_spec.rb +5 -5
- data/spec/integration/api/v2010/account/message/media_spec.rb +21 -21
- data/spec/integration/api/v2010/account/message_spec.rb +22 -22
- data/spec/integration/api/v2010/account/new_key_spec.rb +3 -3
- data/spec/integration/api/v2010/account/new_signing_key_spec.rb +3 -3
- data/spec/integration/api/v2010/account/notification_spec.rb +14 -14
- data/spec/integration/api/v2010/account/outgoing_caller_id_spec.rb +19 -19
- data/spec/integration/api/v2010/account/queue/member_spec.rb +21 -21
- data/spec/integration/api/v2010/account/queue_spec.rb +22 -22
- data/spec/integration/api/v2010/account/recording/add_on_result/payload_spec.rb +28 -28
- data/spec/integration/api/v2010/account/recording/add_on_result_spec.rb +21 -21
- data/spec/integration/api/v2010/account/recording/transcription_spec.rb +21 -21
- data/spec/integration/api/v2010/account/recording_spec.rb +14 -14
- data/spec/integration/api/v2010/account/short_code_spec.rb +14 -14
- data/spec/integration/api/v2010/account/signing_key_spec.rb +19 -19
- data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +33 -33
- data/spec/integration/api/v2010/account/sip/credential_list_spec.rb +22 -22
- data/spec/integration/api/v2010/account/sip/domain/credential_list_mapping_spec.rb +29 -29
- data/spec/integration/api/v2010/account/sip/domain/ip_access_control_list_mapping_spec.rb +29 -29
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +22 -22
- data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +33 -33
- data/spec/integration/api/v2010/account/sip/ip_access_control_list_spec.rb +22 -22
- data/spec/integration/api/v2010/account/token_spec.rb +3 -3
- data/spec/integration/api/v2010/account/transcription_spec.rb +14 -14
- data/spec/integration/api/v2010/account/usage/record/all_time_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/daily_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/last_month_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/monthly_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/this_month_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/today_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/yearly_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/yesterday_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/trigger_spec.rb +22 -22
- data/spec/integration/api/v2010/account/validation_request_spec.rb +3 -3
- data/spec/integration/api/v2010/account_spec.rb +84 -68
- data/spec/integration/chat/v1/credential_spec.rb +9 -9
- data/spec/integration/chat/v1/service/channel/invite_spec.rb +26 -26
- data/spec/integration/chat/v1/service/channel/member_spec.rb +36 -36
- data/spec/integration/chat/v1/service/channel/message_spec.rb +35 -35
- data/spec/integration/chat/v1/service/channel_spec.rb +22 -22
- data/spec/integration/chat/v1/service/role_spec.rb +22 -22
- data/spec/integration/chat/v1/service/user/user_channel_spec.rb +7 -7
- data/spec/integration/chat/v1/service/user_spec.rb +22 -22
- 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 +14 -14
- data/spec/integration/chat/v2/service/channel/invite_spec.rb +26 -26
- data/spec/integration/chat/v2/service/channel/member_spec.rb +33 -33
- data/spec/integration/chat/v2/service/channel/message_spec.rb +40 -40
- data/spec/integration/chat/v2/service/channel_spec.rb +22 -22
- data/spec/integration/chat/v2/service/role_spec.rb +22 -22
- data/spec/integration/chat/v2/service/user/user_binding_spec.rb +21 -21
- data/spec/integration/chat/v2/service/user/user_channel_spec.rb +7 -7
- data/spec/integration/chat/v2/service/user_spec.rb +22 -22
- data/spec/integration/chat/v2/service_spec.rb +9 -9
- data/spec/integration/fax/v1/fax/fax_media_spec.rb +13 -13
- 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 +26 -26
- data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +36 -36
- data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +35 -35
- data/spec/integration/ip_messaging/v1/service/channel_spec.rb +22 -22
- data/spec/integration/ip_messaging/v1/service/role_spec.rb +22 -22
- data/spec/integration/ip_messaging/v1/service/user/user_channel_spec.rb +7 -7
- data/spec/integration/ip_messaging/v1/service/user_spec.rb +22 -22
- 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 +14 -14
- data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +26 -26
- data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +33 -33
- data/spec/integration/ip_messaging/v2/service/channel/message_spec.rb +40 -40
- data/spec/integration/ip_messaging/v2/service/channel_spec.rb +22 -22
- data/spec/integration/ip_messaging/v2/service/role_spec.rb +22 -22
- data/spec/integration/ip_messaging/v2/service/user/user_binding_spec.rb +21 -21
- data/spec/integration/ip_messaging/v2/service/user/user_channel_spec.rb +7 -7
- data/spec/integration/ip_messaging/v2/service/user_spec.rb +22 -22
- data/spec/integration/ip_messaging/v2/service_spec.rb +9 -9
- data/spec/integration/lookups/v1/phone_number_spec.rb +0 -10
- data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +16 -16
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +21 -21
- data/spec/integration/messaging/v1/service/short_code_spec.rb +19 -19
- data/spec/integration/messaging/v1/service_spec.rb +9 -9
- data/spec/integration/monitor/v1/alert_spec.rb +6 -6
- data/spec/integration/monitor/v1/event_spec.rb +3 -3
- data/spec/integration/notify/v1/credential_spec.rb +9 -9
- data/spec/integration/notify/v1/service/binding_spec.rb +17 -17
- data/spec/integration/notify/v1/service/notification_spec.rb +4 -4
- data/spec/integration/notify/v1/service/segment_spec.rb +4 -4
- data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +15 -15
- data/spec/integration/notify/v1/service/user/user_binding_spec.rb +28 -28
- data/spec/integration/notify/v1/service/user_spec.rb +17 -17
- data/spec/integration/notify/v1/service_spec.rb +9 -9
- data/spec/integration/preview/acc_security/service/verification_check_spec.rb +3 -3
- data/spec/integration/preview/acc_security/service/verification_spec.rb +3 -3
- data/spec/integration/preview/acc_security/service_spec.rb +6 -6
- data/spec/integration/preview/deployed_devices/fleet/certificate_spec.rb +22 -22
- data/spec/integration/preview/deployed_devices/fleet/deployment_spec.rb +22 -22
- data/spec/integration/preview/deployed_devices/fleet/device_spec.rb +22 -22
- data/spec/integration/preview/deployed_devices/fleet/key_spec.rb +22 -22
- data/spec/integration/preview/deployed_devices/fleet_spec.rb +9 -9
- data/spec/integration/preview/hosted_numbers/authorization_document/dependent_hosted_number_order_spec.rb +4 -4
- data/spec/integration/preview/hosted_numbers/authorization_document_spec.rb +9 -9
- data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +9 -9
- data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +9 -9
- data/spec/integration/preview/marketplace/available_add_on_spec.rb +3 -3
- data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +14 -14
- data/spec/integration/preview/marketplace/installed_add_on_spec.rb +12 -12
- data/spec/integration/preview/proxy/service/phone_number_spec.rb +19 -19
- data/spec/integration/preview/proxy/service/session/interaction_spec.rb +12 -12
- data/spec/integration/preview/proxy/service/session/participant/message_interaction_spec.rb +23 -23
- data/spec/integration/preview/proxy/service/session/participant_spec.rb +31 -31
- data/spec/integration/preview/proxy/service/session_spec.rb +21 -21
- data/spec/integration/preview/proxy/service/short_code_spec.rb +19 -19
- data/spec/integration/preview/proxy/service_spec.rb +9 -9
- data/spec/integration/preview/studio/flow/engagement/step_spec.rb +12 -12
- data/spec/integration/preview/studio/flow/engagement_spec.rb +11 -11
- data/spec/integration/preview/studio/flow_spec.rb +6 -6
- data/spec/integration/preview/sync/service/document/document_permission_spec.rb +22 -22
- data/spec/integration/preview/sync/service/document_spec.rb +23 -23
- data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +33 -33
- data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +22 -22
- data/spec/integration/preview/sync/service/sync_list_spec.rb +17 -17
- data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +33 -33
- data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +22 -22
- data/spec/integration/preview/sync/service/sync_map_spec.rb +17 -17
- data/spec/integration/preview/sync/service_spec.rb +9 -9
- data/spec/integration/preview/understand/assistant/field_type/field_value_spec.rb +208 -0
- data/spec/integration/preview/understand/{service → assistant}/field_type_spec.rb +38 -38
- data/spec/integration/preview/understand/{service → assistant}/intent/field_spec.rb +36 -36
- data/spec/integration/preview/understand/assistant/intent/sample_spec.rb +251 -0
- data/spec/integration/preview/understand/{service → assistant}/intent_spec.rb +42 -46
- data/spec/integration/preview/understand/{service → assistant}/model_build_spec.rb +34 -34
- data/spec/integration/preview/understand/{service → assistant}/query_spec.rb +42 -38
- data/spec/integration/preview/understand/{service_spec.rb → assistant_spec.rb} +57 -49
- data/spec/integration/preview/wireless/command_spec.rb +3 -3
- data/spec/integration/preview/wireless/rate_plan_spec.rb +9 -9
- data/spec/integration/preview/wireless/sim/usage_spec.rb +3 -3
- data/spec/integration/preview/wireless/sim_spec.rb +6 -6
- data/spec/integration/proxy/v1/service/phone_number_spec.rb +16 -16
- data/spec/integration/proxy/v1/service/session/interaction_spec.rb +19 -19
- data/spec/integration/proxy/v1/service/session/participant/message_interaction_spec.rb +23 -23
- data/spec/integration/proxy/v1/service/session/participant_spec.rb +31 -31
- data/spec/integration/proxy/v1/service/session_spec.rb +21 -21
- data/spec/integration/proxy/v1/service/short_code_spec.rb +19 -19
- data/spec/integration/proxy/v1/service_spec.rb +9 -9
- data/spec/integration/studio/v1/flow/engagement/engagement_context_spec.rb +5 -5
- data/spec/integration/studio/v1/flow/engagement/step/step_context_spec.rb +7 -7
- data/spec/integration/studio/v1/flow/engagement/step_spec.rb +12 -12
- data/spec/integration/studio/v1/flow/engagement_spec.rb +11 -11
- data/spec/integration/studio/v1/flow_spec.rb +6 -6
- data/spec/integration/sync/v1/service/document/document_permission_spec.rb +22 -22
- data/spec/integration/sync/v1/service/document_spec.rb +22 -22
- data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +30 -30
- data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +22 -22
- data/spec/integration/sync/v1/service/sync_list_spec.rb +22 -22
- data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +30 -30
- data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +22 -22
- data/spec/integration/sync/v1/service/sync_map_spec.rb +22 -22
- data/spec/integration/sync/v1/service/sync_stream/stream_message_spec.rb +8 -8
- data/spec/integration/sync/v1/service/sync_stream_spec.rb +22 -22
- data/spec/integration/sync/v1/service_spec.rb +9 -9
- data/spec/integration/taskrouter/v1/workspace/activity_spec.rb +22 -22
- data/spec/integration/taskrouter/v1/workspace/event_spec.rb +9 -9
- data/spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb +21 -21
- data/spec/integration/taskrouter/v1/workspace/task_channel_spec.rb +9 -9
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queues_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/task_queue_spec.rb +26 -26
- data/spec/integration/taskrouter/v1/workspace/task_spec.rb +23 -23
- data/spec/integration/taskrouter/v1/workspace/worker/reservation_spec.rb +21 -21
- data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +21 -21
- data/spec/integration/taskrouter/v1/workspace/worker/worker_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/worker/workers_cumulative_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/worker/workers_real_time_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/worker/workers_statistics_spec.rb +3 -3
- data/spec/integration/taskrouter/v1/workspace/worker_spec.rb +22 -22
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_real_time_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +22 -22
- data/spec/integration/taskrouter/v1/workspace/workspace_cumulative_statistics_spec.rb +3 -3
- data/spec/integration/taskrouter/v1/workspace/workspace_real_time_statistics_spec.rb +3 -3
- data/spec/integration/taskrouter/v1/workspace/workspace_statistics_spec.rb +3 -3
- data/spec/integration/taskrouter/v1/workspace_spec.rb +9 -9
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +20 -20
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +20 -20
- data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +22 -22
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +20 -20
- data/spec/integration/trunking/v1/trunk_spec.rb +9 -9
- data/spec/integration/video/v1/composition_spec.rb +6 -6
- data/spec/integration/video/v1/recording_spec.rb +10 -6
- data/spec/integration/video/v1/room/recording_spec.rb +9 -9
- data/spec/integration/video/v1/room/room_participant/room_participant_published_track_spec.rb +12 -12
- data/spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb +12 -12
- data/spec/integration/video/v1/room/room_participant_spec.rb +14 -14
- data/spec/integration/video/v1/room_spec.rb +6 -6
- data/spec/integration/wireless/v1/command_spec.rb +3 -3
- data/spec/integration/wireless/v1/rate_plan_spec.rb +9 -9
- data/spec/integration/wireless/v1/sim/data_session_spec.rb +3 -3
- data/spec/integration/wireless/v1/sim/usage_record_spec.rb +3 -3
- data/spec/integration/wireless/v1/sim_spec.rb +6 -6
- data/spec/jwt/access_token_spec.rb +2 -0
- metadata +26 -26
- data/spec/integration/preview/understand/service/field_type/field_value_spec.rb +0 -205
- data/spec/integration/preview/understand/service/intent/sample_spec.rb +0 -247
|
@@ -11,15 +11,15 @@ describe 'ShortCode' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.proxy.v1.services('
|
|
15
|
-
.short_codes.create(sid: '
|
|
14
|
+
@client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
15
|
+
.short_codes.create(sid: 'SCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
|
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
17
17
|
|
|
18
|
-
values = {'Sid' => '
|
|
18
|
+
values = {'Sid' => 'SCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', }
|
|
19
19
|
expect(
|
|
20
20
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
21
21
|
method: 'post',
|
|
22
|
-
url: 'https://proxy.twilio.com/v1/Services/
|
|
22
|
+
url: 'https://proxy.twilio.com/v1/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/ShortCodes',
|
|
23
23
|
data: values,
|
|
24
24
|
))).to eq(true)
|
|
25
25
|
end
|
|
@@ -45,8 +45,8 @@ describe 'ShortCode' do
|
|
|
45
45
|
]
|
|
46
46
|
))
|
|
47
47
|
|
|
48
|
-
actual = @client.proxy.v1.services('
|
|
49
|
-
.short_codes.create(sid: '
|
|
48
|
+
actual = @client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
49
|
+
.short_codes.create(sid: 'SCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
|
|
50
50
|
|
|
51
51
|
expect(actual).to_not eq(nil)
|
|
52
52
|
end
|
|
@@ -55,15 +55,15 @@ describe 'ShortCode' do
|
|
|
55
55
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
56
56
|
|
|
57
57
|
expect {
|
|
58
|
-
@client.proxy.v1.services('
|
|
59
|
-
.short_codes('
|
|
58
|
+
@client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
59
|
+
.short_codes('SCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
60
60
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
61
61
|
|
|
62
62
|
values = {}
|
|
63
63
|
expect(
|
|
64
64
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
65
65
|
method: 'delete',
|
|
66
|
-
url: 'https://proxy.twilio.com/v1/Services/
|
|
66
|
+
url: 'https://proxy.twilio.com/v1/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/ShortCodes/SCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
67
67
|
))).to eq(true)
|
|
68
68
|
end
|
|
69
69
|
|
|
@@ -73,8 +73,8 @@ describe 'ShortCode' do
|
|
|
73
73
|
nil,
|
|
74
74
|
))
|
|
75
75
|
|
|
76
|
-
actual = @client.proxy.v1.services('
|
|
77
|
-
.short_codes('
|
|
76
|
+
actual = @client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
77
|
+
.short_codes('SCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
78
78
|
|
|
79
79
|
expect(actual).to eq(true)
|
|
80
80
|
end
|
|
@@ -83,7 +83,7 @@ describe 'ShortCode' do
|
|
|
83
83
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
84
84
|
|
|
85
85
|
expect {
|
|
86
|
-
@client.proxy.v1.services('
|
|
86
|
+
@client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
87
87
|
.short_codes.list()
|
|
88
88
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
89
89
|
|
|
@@ -91,7 +91,7 @@ describe 'ShortCode' do
|
|
|
91
91
|
expect(
|
|
92
92
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
93
93
|
method: 'get',
|
|
94
|
-
url: 'https://proxy.twilio.com/v1/Services/
|
|
94
|
+
url: 'https://proxy.twilio.com/v1/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/ShortCodes',
|
|
95
95
|
))).to eq(true)
|
|
96
96
|
end
|
|
97
97
|
|
|
@@ -129,7 +129,7 @@ describe 'ShortCode' do
|
|
|
129
129
|
]
|
|
130
130
|
))
|
|
131
131
|
|
|
132
|
-
actual = @client.proxy.v1.services('
|
|
132
|
+
actual = @client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
133
133
|
.short_codes.list()
|
|
134
134
|
|
|
135
135
|
expect(actual).to_not eq(nil)
|
|
@@ -139,15 +139,15 @@ describe 'ShortCode' do
|
|
|
139
139
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
140
140
|
|
|
141
141
|
expect {
|
|
142
|
-
@client.proxy.v1.services('
|
|
143
|
-
.short_codes('
|
|
142
|
+
@client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
143
|
+
.short_codes('SCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
144
144
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
145
145
|
|
|
146
146
|
values = {}
|
|
147
147
|
expect(
|
|
148
148
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
149
149
|
method: 'get',
|
|
150
|
-
url: 'https://proxy.twilio.com/v1/Services/
|
|
150
|
+
url: 'https://proxy.twilio.com/v1/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/ShortCodes/SCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
151
151
|
))).to eq(true)
|
|
152
152
|
end
|
|
153
153
|
|
|
@@ -172,8 +172,8 @@ describe 'ShortCode' do
|
|
|
172
172
|
]
|
|
173
173
|
))
|
|
174
174
|
|
|
175
|
-
actual = @client.proxy.v1.services('
|
|
176
|
-
.short_codes('
|
|
175
|
+
actual = @client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
176
|
+
.short_codes('SCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
177
177
|
|
|
178
178
|
expect(actual).to_not eq(nil)
|
|
179
179
|
end
|
|
@@ -11,14 +11,14 @@ describe 'Service' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.proxy.v1.services('
|
|
14
|
+
@client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
15
15
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
16
16
|
|
|
17
17
|
values = {}
|
|
18
18
|
expect(
|
|
19
19
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
20
20
|
method: 'get',
|
|
21
|
-
url: 'https://proxy.twilio.com/v1/Services/
|
|
21
|
+
url: 'https://proxy.twilio.com/v1/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
22
22
|
))).to eq(true)
|
|
23
23
|
end
|
|
24
24
|
|
|
@@ -48,7 +48,7 @@ describe 'Service' do
|
|
|
48
48
|
]
|
|
49
49
|
))
|
|
50
50
|
|
|
51
|
-
actual = @client.proxy.v1.services('
|
|
51
|
+
actual = @client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
52
52
|
|
|
53
53
|
expect(actual).to_not eq(nil)
|
|
54
54
|
end
|
|
@@ -143,14 +143,14 @@ describe 'Service' do
|
|
|
143
143
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
144
144
|
|
|
145
145
|
expect {
|
|
146
|
-
@client.proxy.v1.services('
|
|
146
|
+
@client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
147
147
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
148
148
|
|
|
149
149
|
values = {}
|
|
150
150
|
expect(
|
|
151
151
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
152
152
|
method: 'delete',
|
|
153
|
-
url: 'https://proxy.twilio.com/v1/Services/
|
|
153
|
+
url: 'https://proxy.twilio.com/v1/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
154
154
|
))).to eq(true)
|
|
155
155
|
end
|
|
156
156
|
|
|
@@ -160,7 +160,7 @@ describe 'Service' do
|
|
|
160
160
|
nil,
|
|
161
161
|
))
|
|
162
162
|
|
|
163
|
-
actual = @client.proxy.v1.services('
|
|
163
|
+
actual = @client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
164
164
|
|
|
165
165
|
expect(actual).to eq(true)
|
|
166
166
|
end
|
|
@@ -169,14 +169,14 @@ describe 'Service' do
|
|
|
169
169
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
170
170
|
|
|
171
171
|
expect {
|
|
172
|
-
@client.proxy.v1.services('
|
|
172
|
+
@client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
|
173
173
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
174
174
|
|
|
175
175
|
values = {}
|
|
176
176
|
expect(
|
|
177
177
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
178
178
|
method: 'post',
|
|
179
|
-
url: 'https://proxy.twilio.com/v1/Services/
|
|
179
|
+
url: 'https://proxy.twilio.com/v1/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
180
180
|
))).to eq(true)
|
|
181
181
|
end
|
|
182
182
|
|
|
@@ -206,7 +206,7 @@ describe 'Service' do
|
|
|
206
206
|
]
|
|
207
207
|
))
|
|
208
208
|
|
|
209
|
-
actual = @client.proxy.v1.services('
|
|
209
|
+
actual = @client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
|
210
210
|
|
|
211
211
|
expect(actual).to_not eq(nil)
|
|
212
212
|
end
|
|
@@ -11,8 +11,8 @@ describe 'EngagementContext' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.studio.v1.flows('
|
|
15
|
-
.engagements('
|
|
14
|
+
@client.studio.v1.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
15
|
+
.engagements('FNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
16
16
|
.engagement_context().fetch()
|
|
17
17
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
18
18
|
|
|
@@ -20,7 +20,7 @@ describe 'EngagementContext' do
|
|
|
20
20
|
expect(
|
|
21
21
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
22
22
|
method: 'get',
|
|
23
|
-
url: 'https://studio.twilio.com/v1/Flows/
|
|
23
|
+
url: 'https://studio.twilio.com/v1/Flows/FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Engagements/FNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Context',
|
|
24
24
|
))).to eq(true)
|
|
25
25
|
end
|
|
26
26
|
|
|
@@ -40,8 +40,8 @@ describe 'EngagementContext' do
|
|
|
40
40
|
]
|
|
41
41
|
))
|
|
42
42
|
|
|
43
|
-
actual = @client.studio.v1.flows('
|
|
44
|
-
.engagements('
|
|
43
|
+
actual = @client.studio.v1.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
44
|
+
.engagements('FNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
45
45
|
.engagement_context().fetch()
|
|
46
46
|
|
|
47
47
|
expect(actual).to_not eq(nil)
|
|
@@ -11,9 +11,9 @@ describe 'StepContext' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.studio.v1.flows('
|
|
15
|
-
.engagements('
|
|
16
|
-
.steps('
|
|
14
|
+
@client.studio.v1.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
15
|
+
.engagements('FNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
16
|
+
.steps('FTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
17
17
|
.step_context().fetch()
|
|
18
18
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
19
19
|
|
|
@@ -21,7 +21,7 @@ describe 'StepContext' do
|
|
|
21
21
|
expect(
|
|
22
22
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
23
23
|
method: 'get',
|
|
24
|
-
url: 'https://studio.twilio.com/v1/Flows/
|
|
24
|
+
url: 'https://studio.twilio.com/v1/Flows/FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Engagements/FNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Steps/FTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Context',
|
|
25
25
|
))).to eq(true)
|
|
26
26
|
end
|
|
27
27
|
|
|
@@ -42,9 +42,9 @@ describe 'StepContext' do
|
|
|
42
42
|
]
|
|
43
43
|
))
|
|
44
44
|
|
|
45
|
-
actual = @client.studio.v1.flows('
|
|
46
|
-
.engagements('
|
|
47
|
-
.steps('
|
|
45
|
+
actual = @client.studio.v1.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
46
|
+
.engagements('FNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
47
|
+
.steps('FTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
48
48
|
.step_context().fetch()
|
|
49
49
|
|
|
50
50
|
expect(actual).to_not eq(nil)
|
|
@@ -11,8 +11,8 @@ describe 'Step' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.studio.v1.flows('
|
|
15
|
-
.engagements('
|
|
14
|
+
@client.studio.v1.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
15
|
+
.engagements('FNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
16
16
|
.steps.list()
|
|
17
17
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
18
18
|
|
|
@@ -20,7 +20,7 @@ describe 'Step' do
|
|
|
20
20
|
expect(
|
|
21
21
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
22
22
|
method: 'get',
|
|
23
|
-
url: 'https://studio.twilio.com/v1/Flows/
|
|
23
|
+
url: 'https://studio.twilio.com/v1/Flows/FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Engagements/FNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Steps',
|
|
24
24
|
))).to eq(true)
|
|
25
25
|
end
|
|
26
26
|
|
|
@@ -43,8 +43,8 @@ describe 'Step' do
|
|
|
43
43
|
]
|
|
44
44
|
))
|
|
45
45
|
|
|
46
|
-
actual = @client.studio.v1.flows('
|
|
47
|
-
.engagements('
|
|
46
|
+
actual = @client.studio.v1.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
47
|
+
.engagements('FNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
48
48
|
.steps.list()
|
|
49
49
|
|
|
50
50
|
expect(actual).to_not eq(nil)
|
|
@@ -54,16 +54,16 @@ describe 'Step' do
|
|
|
54
54
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
55
55
|
|
|
56
56
|
expect {
|
|
57
|
-
@client.studio.v1.flows('
|
|
58
|
-
.engagements('
|
|
59
|
-
.steps('
|
|
57
|
+
@client.studio.v1.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
58
|
+
.engagements('FNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
59
|
+
.steps('FTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
60
60
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
61
61
|
|
|
62
62
|
values = {}
|
|
63
63
|
expect(
|
|
64
64
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
65
65
|
method: 'get',
|
|
66
|
-
url: 'https://studio.twilio.com/v1/Flows/
|
|
66
|
+
url: 'https://studio.twilio.com/v1/Flows/FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Engagements/FNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Steps/FTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
67
67
|
))).to eq(true)
|
|
68
68
|
end
|
|
69
69
|
|
|
@@ -90,9 +90,9 @@ describe 'Step' do
|
|
|
90
90
|
]
|
|
91
91
|
))
|
|
92
92
|
|
|
93
|
-
actual = @client.studio.v1.flows('
|
|
94
|
-
.engagements('
|
|
95
|
-
.steps('
|
|
93
|
+
actual = @client.studio.v1.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
94
|
+
.engagements('FNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
95
|
+
.steps('FTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
96
96
|
|
|
97
97
|
expect(actual).to_not eq(nil)
|
|
98
98
|
end
|
|
@@ -11,7 +11,7 @@ describe 'Engagement' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.studio.v1.flows('
|
|
14
|
+
@client.studio.v1.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
15
15
|
.engagements.list()
|
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
17
17
|
|
|
@@ -19,7 +19,7 @@ describe 'Engagement' do
|
|
|
19
19
|
expect(
|
|
20
20
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
21
21
|
method: 'get',
|
|
22
|
-
url: 'https://studio.twilio.com/v1/Flows/
|
|
22
|
+
url: 'https://studio.twilio.com/v1/Flows/FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Engagements',
|
|
23
23
|
))).to eq(true)
|
|
24
24
|
end
|
|
25
25
|
|
|
@@ -42,7 +42,7 @@ describe 'Engagement' do
|
|
|
42
42
|
]
|
|
43
43
|
))
|
|
44
44
|
|
|
45
|
-
actual = @client.studio.v1.flows('
|
|
45
|
+
actual = @client.studio.v1.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
46
46
|
.engagements.list()
|
|
47
47
|
|
|
48
48
|
expect(actual).to_not eq(nil)
|
|
@@ -52,15 +52,15 @@ describe 'Engagement' do
|
|
|
52
52
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
53
53
|
|
|
54
54
|
expect {
|
|
55
|
-
@client.studio.v1.flows('
|
|
56
|
-
.engagements('
|
|
55
|
+
@client.studio.v1.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
56
|
+
.engagements('FNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
57
57
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
58
58
|
|
|
59
59
|
values = {}
|
|
60
60
|
expect(
|
|
61
61
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
62
62
|
method: 'get',
|
|
63
|
-
url: 'https://studio.twilio.com/v1/Flows/
|
|
63
|
+
url: 'https://studio.twilio.com/v1/Flows/FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Engagements/FNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
64
64
|
))).to eq(true)
|
|
65
65
|
end
|
|
66
66
|
|
|
@@ -87,8 +87,8 @@ describe 'Engagement' do
|
|
|
87
87
|
]
|
|
88
88
|
))
|
|
89
89
|
|
|
90
|
-
actual = @client.studio.v1.flows('
|
|
91
|
-
.engagements('
|
|
90
|
+
actual = @client.studio.v1.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
91
|
+
.engagements('FNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
92
92
|
|
|
93
93
|
expect(actual).to_not eq(nil)
|
|
94
94
|
end
|
|
@@ -97,7 +97,7 @@ describe 'Engagement' do
|
|
|
97
97
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
98
98
|
|
|
99
99
|
expect {
|
|
100
|
-
@client.studio.v1.flows('
|
|
100
|
+
@client.studio.v1.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
101
101
|
.engagements.create(to: '+15558675310', from: '+15017122661')
|
|
102
102
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
103
103
|
|
|
@@ -105,7 +105,7 @@ describe 'Engagement' do
|
|
|
105
105
|
expect(
|
|
106
106
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
107
107
|
method: 'post',
|
|
108
|
-
url: 'https://studio.twilio.com/v1/Flows/
|
|
108
|
+
url: 'https://studio.twilio.com/v1/Flows/FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Engagements',
|
|
109
109
|
data: values,
|
|
110
110
|
))).to eq(true)
|
|
111
111
|
end
|
|
@@ -133,7 +133,7 @@ describe 'Engagement' do
|
|
|
133
133
|
]
|
|
134
134
|
))
|
|
135
135
|
|
|
136
|
-
actual = @client.studio.v1.flows('
|
|
136
|
+
actual = @client.studio.v1.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
137
137
|
.engagements.create(to: '+15558675310', from: '+15017122661')
|
|
138
138
|
|
|
139
139
|
expect(actual).to_not eq(nil)
|
|
@@ -50,14 +50,14 @@ describe 'Flow' do
|
|
|
50
50
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
51
51
|
|
|
52
52
|
expect {
|
|
53
|
-
@client.studio.v1.flows('
|
|
53
|
+
@client.studio.v1.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
54
54
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
55
55
|
|
|
56
56
|
values = {}
|
|
57
57
|
expect(
|
|
58
58
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
59
59
|
method: 'get',
|
|
60
|
-
url: 'https://studio.twilio.com/v1/Flows/
|
|
60
|
+
url: 'https://studio.twilio.com/v1/Flows/FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
61
61
|
))).to eq(true)
|
|
62
62
|
end
|
|
63
63
|
|
|
@@ -81,7 +81,7 @@ describe 'Flow' do
|
|
|
81
81
|
]
|
|
82
82
|
))
|
|
83
83
|
|
|
84
|
-
actual = @client.studio.v1.flows('
|
|
84
|
+
actual = @client.studio.v1.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
85
85
|
|
|
86
86
|
expect(actual).to_not eq(nil)
|
|
87
87
|
end
|
|
@@ -90,14 +90,14 @@ describe 'Flow' do
|
|
|
90
90
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
91
91
|
|
|
92
92
|
expect {
|
|
93
|
-
@client.studio.v1.flows('
|
|
93
|
+
@client.studio.v1.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
94
94
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
95
95
|
|
|
96
96
|
values = {}
|
|
97
97
|
expect(
|
|
98
98
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
99
99
|
method: 'delete',
|
|
100
|
-
url: 'https://studio.twilio.com/v1/Flows/
|
|
100
|
+
url: 'https://studio.twilio.com/v1/Flows/FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
101
101
|
))).to eq(true)
|
|
102
102
|
end
|
|
103
103
|
|
|
@@ -107,7 +107,7 @@ describe 'Flow' do
|
|
|
107
107
|
nil,
|
|
108
108
|
))
|
|
109
109
|
|
|
110
|
-
actual = @client.studio.v1.flows('
|
|
110
|
+
actual = @client.studio.v1.flows('FWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
111
111
|
|
|
112
112
|
expect(actual).to eq(true)
|
|
113
113
|
end
|