spec/integration/messaging/v1/service/alpha_sender_spec.rb in twilio-ruby-5.0.0.rc19 vs spec/integration/messaging/v1/service/alpha_sender_spec.rb in twilio-ruby-5.0.0.rc20

- old
+ new

@@ -11,11 +11,11 @@ @holodeck.mock(Twilio::TwilioResponse.new(500, '')) expect { @client.messaging.v1.services("MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ .alpha_senders.create(alpha_sender: "alpha_sender") - }.to raise_exception(Twilio::REST::TwilioException) + }.to raise_exception(Twilio::REST::TwilioError) values = { 'AlphaSender' => "alpha_sender", } expect( @@ -53,11 +53,11 @@ @holodeck.mock(Twilio::TwilioResponse.new(500, '')) expect { @client.messaging.v1.services("MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ .alpha_senders.list() - }.to raise_exception(Twilio::REST::TwilioException) + }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( method: 'get', @@ -105,11 +105,11 @@ @holodeck.mock(Twilio::TwilioResponse.new(500, '')) expect { @client.messaging.v1.services("MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ .alpha_senders("AIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch() - }.to raise_exception(Twilio::REST::TwilioException) + }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( method: 'get', @@ -144,10 +144,10 @@ @holodeck.mock(Twilio::TwilioResponse.new(500, '')) expect { @client.messaging.v1.services("MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ .alpha_senders("AIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete() - }.to raise_exception(Twilio::REST::TwilioException) + }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( method: 'delete', \ No newline at end of file