spec/integration/accounts/v1/credential/public_key_spec.rb in twilio-ruby-5.0.0.rc19 vs spec/integration/accounts/v1/credential/public_key_spec.rb in twilio-ruby-5.0.0.rc20
- old
+ new
@@ -11,11 +11,11 @@
@holodeck.mock(Twilio::TwilioResponse.new(500, ''))
expect {
@client.accounts.v1.credentials \
.public_key.list()
- }.to raise_exception(Twilio::REST::TwilioException)
+ }.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'get',
@@ -86,11 +86,11 @@
@holodeck.mock(Twilio::TwilioResponse.new(500, ''))
expect {
@client.accounts.v1.credentials \
.public_key.create(public_key: "publickey")
- }.to raise_exception(Twilio::REST::TwilioException)
+ }.to raise_exception(Twilio::REST::TwilioError)
values = {
'PublicKey' => "publickey",
}
expect(
@@ -126,11 +126,11 @@
@holodeck.mock(Twilio::TwilioResponse.new(500, ''))
expect {
@client.accounts.v1.credentials \
.public_key("CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch()
- }.to raise_exception(Twilio::REST::TwilioException)
+ }.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'get',
@@ -163,11 +163,11 @@
@holodeck.mock(Twilio::TwilioResponse.new(500, ''))
expect {
@client.accounts.v1.credentials \
.public_key("CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
- }.to raise_exception(Twilio::REST::TwilioException)
+ }.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'post',
@@ -200,10 +200,10 @@
@holodeck.mock(Twilio::TwilioResponse.new(500, ''))
expect {
@client.accounts.v1.credentials \
.public_key("CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").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