Removed placeholder text for maintenance window (#1049)

Co-authored-by: Jesus Federico <jesus@123it.ca>
This commit is contained in:
Ahmad Farhat 2020-03-20 11:48:54 -04:00 committed by GitHub
parent b23c1d11b3
commit 7fa7d2f525
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 9 deletions

View File

@ -79,7 +79,7 @@ class ApplicationController < ActionController::Base
end
if Rails.configuration.maintenance_window.present?
unless cookies[:maintenance_window] == Rails.configuration.maintenance_window
flash.now[:maintenance] = I18n.t("maintenance.window_alert", date: Rails.configuration.maintenance_window)
flash.now[:maintenance] = Rails.configuration.maintenance_window
end
end
end

View File

@ -61,12 +61,4 @@ describe Room, type: :model do
expect(@room.owned_by?(create(:user))).to be false
end
end
context "#notify_waiting" do
it "should broadcast to waiting channel with started action" do
expect do
@room.notify_waiting
end.to have_broadcasted_to("#{@room.uid}_waiting_channel").with(a_hash_including(action: "started"))
end
end
end