diff --git a/app/controllers/offline_controller.rb b/app/controllers/offline_controller.rb index fb315862ba8..9ca5ac84cc6 100644 --- a/app/controllers/offline_controller.rb +++ b/app/controllers/offline_controller.rb @@ -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' diff --git a/spec/controllers/offline_controller_spec.rb b/spec/controllers/offline_controller_spec.rb new file mode 100644 index 00000000000..b583747b7d4 --- /dev/null +++ b/spec/controllers/offline_controller_spec.rb @@ -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