spec/integration/monitor/v1/event_spec.rb in twilio-ruby-5.0.0.rc18 vs spec/integration/monitor/v1/event_spec.rb in twilio-ruby-5.0.0.rc19
- old
+ new
@@ -1,21 +1,21 @@
##
# This code was generated by
# \ / _ _ _| _ _
# | (_)\/(_)(_|\/| |(/_ v1.0.0
-# / /
+# / /
require 'spec_helper.rb'
describe 'Event' do
it "can fetch" do
@holodeck.mock(Twilio::TwilioResponse.new(500, ''))
-
+
expect {
@client.monitor.v1.events("AEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch()
}.to raise_exception(Twilio::REST::TwilioException)
-
+
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'get',
url: 'https://monitor.twilio.com/v1/Events/AEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
@@ -50,23 +50,23 @@
"source_ip_address": "10.86.6.250",
"url": "https://monitor.twilio.com/v1/Events/AEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
))
-
+
actual = @client.monitor.v1.events("AEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa").fetch()
-
+
expect(actual).to_not eq(nil)
end
it "can read" do
@holodeck.mock(Twilio::TwilioResponse.new(500, ''))
-
+
expect {
@client.monitor.v1.events.list()
}.to raise_exception(Twilio::REST::TwilioException)
-
+
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'get',
url: 'https://monitor.twilio.com/v1/Events',
@@ -114,13 +114,13 @@
"url": "https://monitor.twilio.com/v1/Events?PageSize=50&Page=0"
}
}
]
))
-
+
actual = @client.monitor.v1.events.list()
-
+
expect(actual).to_not eq(nil)
end
it "receives read_empty responses" do
@holodeck.mock(Twilio::TwilioResponse.new(
@@ -138,11 +138,11 @@
"url": "https://monitor.twilio.com/v1/Events?PageSize=50&Page=0"
}
}
]
))
-
+
actual = @client.monitor.v1.events.list()
-
+
expect(actual).to_not eq(nil)
end
end
\ No newline at end of file