spec/integration/notify/v1/service/notification_spec.rb in twilio-ruby-5.0.0.rc18 vs spec/integration/notify/v1/service/notification_spec.rb in twilio-ruby-5.0.0.rc19
- old
+ new
@@ -1,22 +1,22 @@
##
# This code was generated by
# \ / _ _ _| _ _
# | (_)\/(_)(_|\/| |(/_ v1.0.0
-# / /
+# / /
require 'spec_helper.rb'
describe 'Notification' do
it "can create" do
@holodeck.mock(Twilio::TwilioResponse.new(500, ''))
-
+
expect {
@client.notify.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.notifications.create()
}.to raise_exception(Twilio::REST::TwilioException)
-
+
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'post',
url: 'https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications',
@@ -34,26 +34,28 @@
"date_created": "2016-03-24T23:42:28Z",
"identities": [
"jing"
],
"tags": [],
+ "segments": [],
"priority": "high",
"ttl": 2419200,
"title": "test",
"body": "body",
"sound": null,
"action": null,
"data": null,
"apn": null,
+ "fcm": null,
"gcm": null,
"sms": null,
"facebook_messenger": null
}
]
))
-
+
actual = @client.notify.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \
.notifications.create()
-
+
expect(actual).to_not eq(nil)
end
end
\ No newline at end of file