mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: offline controller regression
This commit is contained in:
parent
9197feefb8
commit
1bd9e64a36
2 changed files with 9 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
class OfflineController < ApplicationController
|
class OfflineController < ApplicationController
|
||||||
layout false
|
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
|
def index
|
||||||
render :offline, content_type: 'text/html'
|
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…
Add table
Add a link
Reference in a new issue