mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:57:10 -06:00
FIX: offline controller regression
This commit is contained in:
parent
9197feefb8
commit
1bd9e64a36
@ -1,6 +1,6 @@
|
||||
class OfflineController < ApplicationController
|
||||
layout false
|
||||
skip_before_filter :preload_json, :check_xhr, :redirect_to_login_if_required
|
||||
skip_before_action :preload_json, :check_xhr, :redirect_to_login_if_required
|
||||
|
||||
def index
|
||||
render :offline, content_type: 'text/html'
|
||||
|
8
spec/controllers/offline_controller_spec.rb
Normal file
8
spec/controllers/offline_controller_spec.rb
Normal file
@ -0,0 +1,8 @@
|
||||
require 'rails_helper'
|
||||
|
||||
describe OfflineController do
|
||||
it "can hit index" do
|
||||
get :index
|
||||
expect(response.status).to eq(200)
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user