spec/integration/chat/v1/service_spec.rb in twilio-ruby-5.0.0.rc19 vs spec/integration/chat/v1/service_spec.rb in twilio-ruby-5.0.0.rc20
- old
+ new
@@ -10,11 +10,11 @@
it "can fetch" do
@holodeck.mock(Twilio::TwilioResponse.new(500, ''))
expect {
@client.chat.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch()
- }.to raise_exception(Twilio::REST::TwilioException)
+ }.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'get',
@@ -66,11 +66,11 @@
it "can delete" do
@holodeck.mock(Twilio::TwilioResponse.new(500, ''))
expect {
@client.chat.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete()
- }.to raise_exception(Twilio::REST::TwilioException)
+ }.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'delete',
@@ -92,11 +92,11 @@
it "can create" do
@holodeck.mock(Twilio::TwilioResponse.new(500, ''))
expect {
@client.chat.v1.services.create(friendly_name: "friendly_name")
- }.to raise_exception(Twilio::REST::TwilioException)
+ }.to raise_exception(Twilio::REST::TwilioError)
values = {
'FriendlyName' => "friendly_name",
}
expect(
@@ -151,11 +151,11 @@
it "can read" do
@holodeck.mock(Twilio::TwilioResponse.new(500, ''))
expect {
@client.chat.v1.services.list()
- }.to raise_exception(Twilio::REST::TwilioException)
+ }.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'get',
@@ -244,10 +244,10 @@
it "can update" do
@holodeck.mock(Twilio::TwilioResponse.new(500, ''))
expect {
@client.chat.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
- }.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