spec/integration/preview/proxy/service_spec.rb in twilio-ruby-5.6.3 vs spec/integration/preview/proxy/service_spec.rb in twilio-ruby-5.6.4
- old
+ new
@@ -9,11 +9,11 @@
describe 'Service' do
it "can fetch" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.preview.proxy.services("KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch()
+ @client.preview.proxy.services('KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
}.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
@@ -42,11 +42,11 @@
"auto_create": false
}
]
))
- actual = @client.preview.proxy.services("KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch()
+ actual = @client.preview.proxy.services('KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
expect(actual).to_not eq(nil)
end
it "can read" do
@@ -132,11 +132,11 @@
it "can delete" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.preview.proxy.services("KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete()
+ @client.preview.proxy.services('KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
}.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
@@ -149,20 +149,20 @@
@holodeck.mock(Twilio::Response.new(
204,
nil,
))
- actual = @client.preview.proxy.services("KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").delete()
+ actual = @client.preview.proxy.services('KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
expect(actual).to eq(true)
end
it "can update" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.preview.proxy.services("KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
+ @client.preview.proxy.services('KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
}.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
@@ -191,10 +191,10 @@
"auto_create": false
}
]
))
- actual = @client.preview.proxy.services("KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").update()
+ actual = @client.preview.proxy.services('KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
expect(actual).to_not eq(nil)
end
end
\ No newline at end of file