spec/integration/taskrouter/v1/workspace/activity_spec.rb in twilio-ruby-5.0.0.rc19 vs spec/integration/taskrouter/v1/workspace/activity_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") \ .activities("WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch() - }.to raise_exception(Twilio::REST::TwilioException) + }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( method: 'get', @@ -50,11 +50,11 @@ @holodeck.mock(Twilio::TwilioResponse.new(500, '')) expect { @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ .activities("WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update() - }.to raise_exception(Twilio::REST::TwilioException) + }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( method: 'post', @@ -89,11 +89,11 @@ @holodeck.mock(Twilio::TwilioResponse.new(500, '')) expect { @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ .activities("WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete() - }.to raise_exception(Twilio::REST::TwilioException) + }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( method: 'delete', @@ -117,11 +117,11 @@ @holodeck.mock(Twilio::TwilioResponse.new(500, '')) expect { @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ .activities.list() - }.to raise_exception(Twilio::REST::TwilioException) + }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( method: 'get', @@ -196,10 +196,10 @@ @holodeck.mock(Twilio::TwilioResponse.new(500, '')) expect { @client.taskrouter.v1.workspaces("WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ .activities.create(friendly_name: "friendly_name") - }.to raise_exception(Twilio::REST::TwilioException) + }.to raise_exception(Twilio::REST::TwilioError) values = { 'FriendlyName' => "friendly_name", } expect( \ No newline at end of file