spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb in twilio-ruby-5.6.3 vs spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb in twilio-ruby-5.6.4
- old
+ new
@@ -9,12 +9,12 @@
describe 'WorkerChannel' do
it "can read" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .workers("WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
+ @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .workers('WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
.worker_channels.list()
}.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@@ -57,12 +57,12 @@
]
}
]
))
- actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .workers("WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
+ actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .workers('WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
.worker_channels.list()
expect(actual).to_not eq(nil)
end
@@ -83,24 +83,24 @@
"channels": []
}
]
))
- actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .workers("WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
+ 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::Response.new(500, ''))
expect {
- @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .workers("WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .worker_channels("WCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch()
+ @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .workers('WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .worker_channels('WCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
}.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
@@ -129,24 +129,24 @@
"workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
))
- actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .workers("WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .worker_channels("WCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch()
+ 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::Response.new(500, ''))
expect {
- @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .workers("WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .worker_channels("WCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
+ @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .workers('WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ .worker_channels('WCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
}.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
@@ -175,12 +175,12 @@
"workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
))
- actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .workers("WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
- .worker_channels("WCaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
+ 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