spec/integration/taskrouter/v1/workspace/task_spec.rb in twilio-ruby-5.0.0.rc19 vs spec/integration/taskrouter/v1/workspace/task_spec.rb in twilio-ruby-5.0.0.rc20

- old
+ new

@@ -11,11 +11,11 @@ @holodeck.mock(Twilio::TwilioResponse.new(500, '')) expect { @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ .tasks("WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch() - }.to raise_exception(Twilio::REST::TwilioException) + }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( method: 'get', @@ -67,11 +67,11 @@ @holodeck.mock(Twilio::TwilioResponse.new(500, '')) expect { @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ .tasks("WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update() - }.to raise_exception(Twilio::REST::TwilioException) + }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( method: 'post', @@ -123,11 +123,11 @@ @holodeck.mock(Twilio::TwilioResponse.new(500, '')) expect { @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ .tasks("WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete() - }.to raise_exception(Twilio::REST::TwilioException) + }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( method: 'delete', @@ -151,11 +151,11 @@ @holodeck.mock(Twilio::TwilioResponse.new(500, '')) expect { @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ .tasks.list() - }.to raise_exception(Twilio::REST::TwilioException) + }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( method: 'get', @@ -270,10 +270,10 @@ @holodeck.mock(Twilio::TwilioResponse.new(500, '')) expect { @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ .tasks.create() - }.to raise_exception(Twilio::REST::TwilioException) + }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( method: 'post', \ No newline at end of file