spec/integration/taskrouter/v1/workspace_spec.rb in twilio-ruby-5.6.3 vs spec/integration/taskrouter/v1/workspace_spec.rb in twilio-ruby-5.6.4
- old
+ new
@@ -9,11 +9,11 @@
describe 'Workspace' do
it "can fetch" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch()
+ @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
}.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
@@ -55,20 +55,20 @@
"url": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
))
- actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch()
+ actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
expect(actual).to_not eq(nil)
end
it "can update" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
+ @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
}.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
@@ -110,11 +110,11 @@
"url": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
))
- actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
+ actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
expect(actual).to_not eq(nil)
end
it "can read" do
@@ -211,14 +211,14 @@
it "can create" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.taskrouter.v1.workspaces.create(friendly_name: "friendly_name")
+ @client.taskrouter.v1.workspaces.create(friendly_name: 'friendly_name')
}.to raise_exception(Twilio::REST::TwilioError)
- values = {'FriendlyName' => "friendly_name", }
+ values = {'FriendlyName' => 'friendly_name', }
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'post',
url: 'https://taskrouter.twilio.com/v1/Workspaces',
data: values,
@@ -258,20 +258,20 @@
"url": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
))
- actual = @client.taskrouter.v1.workspaces.create(friendly_name: "friendly_name")
+ actual = @client.taskrouter.v1.workspaces.create(friendly_name: 'friendly_name')
expect(actual).to_not eq(nil)
end
it "can delete" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete()
+ @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
}.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
@@ -284,10 +284,10 @@
@holodeck.mock(Twilio::Response.new(
204,
nil,
))
- actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete()
+ actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
expect(actual).to eq(true)
end
end
\ No newline at end of file