spec/integration/taskrouter/v1/workspace/workflow_spec.rb in twilio-ruby-5.0.0.rc12 vs spec/integration/taskrouter/v1/workspace/workflow_spec.rb in twilio-ruby-5.0.0.rc13
- old
+ new
@@ -207,17 +207,17 @@
it "can create" do
@holodeck.mock(Twilio::TwilioResponse.new(500, ''))
expect {
@client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .workflows.create(friendly_name: "friendly_name", configuration: "configuration", assignment_callback_url: "/example")
+ .workflows.create(friendly_name: "friendly_name", configuration: "configuration", assignment_callback_url: "https://example.com")
}.to raise_exception(Twilio::REST::TwilioException)
values = {
'FriendlyName' => "friendly_name",
'Configuration' => "configuration",
- 'AssignmentCallbackUrl' => "/example",
+ 'AssignmentCallbackUrl' => "https://example.com",
}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'post',
url: 'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workflows',
@@ -245,10 +245,10 @@
}
]
))
actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .workflows.create(friendly_name: "friendly_name", configuration: "configuration", assignment_callback_url: "/example")
+ .workflows.create(friendly_name: "friendly_name", configuration: "configuration", assignment_callback_url: "https://example.com")
expect(actual).to_not eq(nil)
end
end
\ No newline at end of file