spec/integration/taskrouter/v1/workspace/task_spec.rb in twilio-ruby-5.6.3 vs spec/integration/taskrouter/v1/workspace/task_spec.rb in twilio-ruby-5.6.4

- old
+ new

@@ -9,12 +9,12 @@ describe 'Task' do it "can fetch" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .tasks("WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch() + @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .tasks('WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch() }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( @@ -55,22 +55,22 @@ } } ] )) - actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .tasks("WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch() + actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .tasks('WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch() expect(actual).to_not eq(nil) end it "can update" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .tasks("WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update() + @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .tasks('WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update() }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( @@ -111,22 +111,22 @@ } } ] )) - actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .tasks("WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update() + actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .tasks('WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update() expect(actual).to_not eq(nil) end it "can delete" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .tasks("WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete() + @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .tasks('WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete() }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( @@ -139,21 +139,21 @@ @holodeck.mock(Twilio::Response.new( 204, nil, )) - actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ - .tasks("WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete() + actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + .tasks('WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete() expect(actual).to eq(true) end it "can read" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ + @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ .tasks.list() }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @@ -208,11 +208,11 @@ ] } ] )) - actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ + actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ .tasks.list() expect(actual).to_not eq(nil) end @@ -233,11 +233,11 @@ "tasks": [] } ] )) - actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ + actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ .tasks.list() expect(actual).to_not eq(nil) end @@ -258,21 +258,21 @@ "tasks": [] } ] )) - actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ + actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ .tasks.list() expect(actual).to_not eq(nil) end it "can create" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ + @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ .tasks.create() }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @@ -314,10 +314,10 @@ } } ] )) - actual = @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ + actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ .tasks.create() expect(actual).to_not eq(nil) end end \ No newline at end of file