Added fix for multitenant error (#394)

* Added fix for multitenant error

* Fixed issue with room lock when using ldap

* Fixed test cases

* Fixed rubocop issue

* Included internal documentation for LDAP ENV variables
This commit is contained in:
farhatahmad
2019-03-13 15:56:57 -04:00
committed by Jesus Federico
parent 08f6f32779
commit c0b46be547
5 changed files with 14 additions and 2 deletions

View File

@ -74,6 +74,7 @@ describe RoomsController, type: :controller do
end
it "redirects to root if owner of room is not verified" do
allow(Rails.configuration).to receive(:enable_email_verification).and_return(true)
@owner.update_attribute(:email_verified, false)
post :show, params: { room_uid: @owner.main_room }
@ -162,6 +163,7 @@ describe RoomsController, type: :controller do
end
it "redirects to root if owner of room is not verified" do
allow(Rails.configuration).to receive(:enable_email_verification).and_return(true)
@owner.update_attribute(:email_verified, false)
post :join, params: { room_uid: @room, join_name: @owner.name }