From 7fa7d2f5259fd1069f7a9f2c0cee7ef45e702f3b Mon Sep 17 00:00:00 2001 From: Ahmad Farhat Date: Fri, 20 Mar 2020 11:48:54 -0400 Subject: [PATCH] Removed placeholder text for maintenance window (#1049) Co-authored-by: Jesus Federico --- app/controllers/application_controller.rb | 2 +- spec/models/room_spec.rb | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 6a767602..1e101f29 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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 diff --git a/spec/models/room_spec.rb b/spec/models/room_spec.rb index af49df8e..d753bb37 100644 --- a/spec/models/room_spec.rb +++ b/spec/models/room_spec.rb @@ -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