spec/integration/notify/v1/service/notification_spec.rb in twilio-ruby-5.0.0.rc24 vs spec/integration/notify/v1/service/notification_spec.rb in twilio-ruby-5.0.0.rc25

- old
+ new

@@ -57,6 +57,41 @@ actual = @client.notify.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ .notifications.create() expect(actual).to_not eq(nil) end + + it "receives create_direct_notification responses" do + @holodeck.mock(Twilio::TwilioResponse.new( + 201, + %q[ + { + "sid": "NOb8021351170b4e1286adaac3fdd6d082", + "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "service_sid": "IS699b53e02da45a1ba9d13b7d7d2766af", + "date_created": "2016-03-24T23:42:28Z", + "identities": [], + "tags": [], + "segments": [], + "priority": "high", + "ttl": 2419200, + "title": null, + "body": "body", + "sound": null, + "action": null, + "data": null, + "apn": null, + "fcm": null, + "gcm": null, + "sms": null, + "facebook_messenger": null, + "alexa": null + } + ] + )) + + actual = @client.notify.v1.services("ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") \ + .notifications.create() + + expect(actual).to_not eq(nil) + end end \ No newline at end of file