FIX: offline controller regression

This commit is contained in:
Sam 2017-10-31 15:44:16 +11:00
parent 9197feefb8
commit 1bd9e64a36
2 changed files with 9 additions and 1 deletions

View File

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

View 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