spec/requests/atendees_spec.rb in amazon-chime-sdk-rails-1.1.1 vs spec/requests/atendees_spec.rb in amazon-chime-sdk-rails-2.0.0
- old
+ new
@@ -9,19 +9,29 @@
@attendee_user = create(:user)
@room.add_member(@attendee_user)
test_attendee = {
external_user_id: "ChimeSdkRailsApp-test-User-#{@attendee_user.id}",
attendee_id: @attendee_id,
- join_token: "dummy"
+ join_token: "dummy",
+ capabilities: {
+ audio: "SendReceive",
+ video: "SendReceive",
+ content: "SendReceive"
+ }
}
dummy_attendee = {
external_user_id: "ChimeSdkRailsApp-test-User-0",
attendee_id: @dummy_attendee_id,
- join_token: "dummy"
+ join_token: "dummy",
+ capabilities: {
+ audio: "SendReceive",
+ video: "SendReceive",
+ content: "SendReceive"
+ }
}
# Use stubs for the AWS SDK for Ruby
- client = Aws::Chime::Client.new(stub_responses: true)
+ client = Aws::ChimeSDKMeetings::Client.new(stub_responses: true)
client.stub_responses(:list_attendees, {
attendees: [ test_attendee, dummy_attendee ]
})
client.stub_responses(:get_attendee, -> (context) {
context.params[:meeting_id] == @meeting_id ?
\ No newline at end of file