spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb in twilio-ruby-5.0.0.rc18 vs spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb in twilio-ruby-5.0.0.rc19
- old
+ new
@@ -1,23 +1,23 @@
##
# This code was generated by
# \ / _ _ _| _ _
# | (_)\/(_)(_|\/| |(/_ v1.0.0
-# / /
+# / /
require 'spec_helper.rb'
describe 'WorkerChannel' do
it "can read" do
@holodeck.mock(Twilio::TwilioResponse.new(500, ''))
-
+
expect {
@client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.workers("WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.worker_channels.list()
}.to raise_exception(Twilio::REST::TwilioException)
-
+
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'get',
url: 'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workers/WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels',
@@ -61,15 +61,15 @@
}
]
}
]
))
-
+
actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.workers("WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.worker_channels.list()
-
+
expect(actual).to_not eq(nil)
end
it "receives read_empty responses" do
@holodeck.mock(Twilio::TwilioResponse.new(
@@ -87,27 +87,27 @@
},
"channels": []
}
]
))
-
+
actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.workers("WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.worker_channels.list()
-
+
expect(actual).to_not eq(nil)
end
it "can fetch" do
@holodeck.mock(Twilio::TwilioResponse.new(500, ''))
-
+
expect {
@client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.workers("WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.worker_channels("WCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch()
}.to raise_exception(Twilio::REST::TwilioException)
-
+
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'get',
url: 'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workers/WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/WCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
@@ -138,27 +138,27 @@
"worker_sid": "WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
))
-
+
actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.workers("WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.worker_channels("WCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch()
-
+
expect(actual).to_not eq(nil)
end
it "can update" do
@holodeck.mock(Twilio::TwilioResponse.new(500, ''))
-
+
expect {
@client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.workers("WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.worker_channels("WCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
}.to raise_exception(Twilio::REST::TwilioException)
-
+
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'post',
url: 'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workers/WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/WCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
@@ -189,13 +189,13 @@
"worker_sid": "WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
))
-
+
actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.workers("WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.worker_channels("WCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
-
+
expect(actual).to_not eq(nil)
end
end
\ No newline at end of file