Sha256: a6745d74edfa3e6df55f9dae27565f19d3f6cb8325043f38b51f761e74af3f5e
Contents?: true
Size: 856 Bytes
Versions: 1
Compression:
Stored size: 856 Bytes
Contents
require 'spec_helper' describe "Notification" do before(:all) do Twilio.connect('mysid', 'mytoken') @notification_sid = 'NO1fb7086ceb85caed2265f17d7bf7981c' end it "gets a list of notifications" do response, url = stub_get(:notifications, 'Notifications') Twilio::Notification.list.should eql response WebMock.should have_requested(:get, url) end it "gets a specific notification" do response, url = stub_get(:notification, "Notifications/#{@notification_sid}") Twilio::Notification.get(@notification_sid).should eql response WebMock.should have_requested(:get, url) end it "is deleted" do response, url = stub_delete(:notification, "Notifications/#{@notification_sid}") Twilio::Notification.delete(@notification_sid).should eql response WebMock.should have_requested(:delete, url) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twilio-3.1.1 | spec/twilio/notification_spec.rb |