spec/integration/api/v2010/account/conference/participant_spec.rb in twilio-ruby-5.43.0 vs spec/integration/api/v2010/account/conference/participant_spec.rb in twilio-ruby-5.44.0
- old
+ new
@@ -477,9 +477,39 @@
.participants.create(from: '+15017122661', to: '+15558675310')
expect(actual).to_not eq(nil)
end
+ it "receives create_with_friendly_name_recording_track responses" do
+ @holodeck.mock(Twilio::Response.new(
+ 201,
+ %q[
+ {
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "label": null,
+ "conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+ "date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
+ "date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
+ "end_conference_on_exit": false,
+ "muted": false,
+ "hold": false,
+ "status": "complete",
+ "start_conference_on_enter": true,
+ "coaching": false,
+ "call_sid_to_coach": null,
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
+ }
+ ]
+ ))
+
+ actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .participants.create(from: '+15017122661', to: '+15558675310')
+
+ expect(actual).to_not eq(nil)
+ end
+
it "can delete" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
\ No newline at end of file