spec/integration/api/v2010/account/call/notification_spec.rb in twilio-ruby-5.7.2 vs spec/integration/api/v2010/account/call/notification_spec.rb in twilio-ruby-5.8.0

- old
+ new

@@ -9,20 +9,20 @@ describe 'Notification' do it "can fetch" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ - .calls('CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ - .notifications('NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch() + @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \ + .calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \ + .notifications('NOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch() }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( method: 'get', - url: 'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json', + url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Notifications/NOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json', ))).to eq(true) end it "receives fetch responses" do @holodeck.mock(Twilio::Response.new( @@ -48,61 +48,61 @@ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json" } ] )) - actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ - .calls('CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ - .notifications('NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch() + actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \ + .calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \ + .notifications('NOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch() expect(actual).to_not eq(nil) end it "can delete" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ - .calls('CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ - .notifications('NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete() + @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \ + .calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \ + .notifications('NOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete() }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( method: 'delete', - url: 'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json', + url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Notifications/NOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json', ))).to eq(true) end it "receives delete responses" do @holodeck.mock(Twilio::Response.new( 204, nil, )) - actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ - .calls('CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ - .notifications('NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete() + actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \ + .calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \ + .notifications('NOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete() expect(actual).to eq(true) end it "can read" do @holodeck.mock(Twilio::Response.new(500, '')) expect { - @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ - .calls('CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \ + .calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \ .notifications.list() }.to raise_exception(Twilio::REST::TwilioError) values = {} expect( @holodeck.has_request?(Holodeck::Request.new( method: 'get', - url: 'https://api.twilio.com/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json', + url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls/CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Notifications.json', ))).to eq(true) end it "receives read_full responses" do @holodeck.mock(Twilio::Response.new( @@ -140,12 +140,12 @@ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json" } ] )) - actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ - .calls('CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \ + .calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \ .notifications.list() expect(actual).to_not eq(nil) end @@ -168,11 +168,11 @@ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json" } ] )) - actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ - .calls('CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \ + actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \ + .calls('CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \ .notifications.list() expect(actual).to_not eq(nil) end end \ No newline at end of file