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'
|
||||
|
|
|
@ -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