spec/integration/ip_messaging/v1/service/role_spec.rb in twilio-ruby-5.0.0.rc19 vs spec/integration/ip_messaging/v1/service/role_spec.rb in twilio-ruby-5.0.0.rc20
- old
+ new
@@ -11,11 +11,11 @@
@holodeck.mock(Twilio::TwilioResponse.new(500, ''))
expect {
@client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.roles("RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch()
- }.to raise_exception(Twilio::REST::TwilioException)
+ }.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'get',
@@ -56,11 +56,11 @@
@holodeck.mock(Twilio::TwilioResponse.new(500, ''))
expect {
@client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.roles("RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete()
- }.to raise_exception(Twilio::REST::TwilioException)
+ }.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'delete',
@@ -84,11 +84,11 @@
@holodeck.mock(Twilio::TwilioResponse.new(500, ''))
expect {
@client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.roles.create(friendly_name: "friendly_name", type: "channel", permission: ['permission'])
- }.to raise_exception(Twilio::REST::TwilioException)
+ }.to raise_exception(Twilio::REST::TwilioError)
values = {
'FriendlyName' => "friendly_name",
'Type' => "channel",
'Permission' => ['permission'],
@@ -134,11 +134,11 @@
@holodeck.mock(Twilio::TwilioResponse.new(500, ''))
expect {
@client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.roles.list()
- }.to raise_exception(Twilio::REST::TwilioException)
+ }.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'get',
@@ -217,10 +217,10 @@
@holodeck.mock(Twilio::TwilioResponse.new(500, ''))
expect {
@client.ip_messaging.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.roles("RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update(permission: ['permission'])
- }.to raise_exception(Twilio::REST::TwilioException)
+ }.to raise_exception(Twilio::REST::TwilioError)
values = {
'Permission' => ['permission'],
}
expect(
\ No newline at end of file