From 33d7fa4e1e4c64a88c97b3649a3f8cb3524366bd Mon Sep 17 00:00:00 2001 From: farhatahmad Date: Mon, 6 Apr 2020 16:01:59 -0400 Subject: [PATCH] Fixed rspec --- spec/controllers/rooms_controller_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/controllers/rooms_controller_spec.rb b/spec/controllers/rooms_controller_spec.rb index be8f384b..f6cdafd6 100644 --- a/spec/controllers/rooms_controller_spec.rb +++ b/spec/controllers/rooms_controller_spec.rb @@ -262,6 +262,7 @@ describe RoomsController, type: :controller do it "should join the room if the room has the anyone_can_start setting" do allow_any_instance_of(BigBlueButton::BigBlueButtonApi).to receive(:is_meeting_running?).and_return(false) + allow_any_instance_of(Setting).to receive(:get_value).and_return("optional") room = Room.new(name: "test") room.room_settings = "{\"muteOnStart\":false,\"joinViaHtml5\":false,\"anyoneCanStart\":true}" @@ -275,6 +276,7 @@ describe RoomsController, type: :controller do end it "should join the room as moderator if room has the all_join_moderator setting" do + allow_any_instance_of(Setting).to receive(:get_value).and_return("optional") allow_any_instance_of(BigBlueButton::BigBlueButtonApi).to receive(:is_meeting_running?).and_return(true) room = Room.new(name: "test")