diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index e25df4e..1c2ade3 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -2,7 +2,6 @@ # Offsprings are dependent on them # They are the ones that need to perform the process on behalf of the offspring class UsersController < ApplicationController - before_action :authenticate_user! def show @user = User.find_by_id(params[:id]) || current_user end diff --git a/spec/controllers/admin_controller_spec.rb b/spec/controllers/admin_controller_spec.rb index 5a9b172..7bc5d87 100644 --- a/spec/controllers/admin_controller_spec.rb +++ b/spec/controllers/admin_controller_spec.rb @@ -11,7 +11,7 @@ expect(response).to have_http_status(:success) end end - describe "#POST switch_lock_admin" do + describe "POST #switch_lock_admin" do before(:each) do # we want to make sure we are starting in switch lock with false value sign_in user_admin post :switch_lock_admin if ApplicationHelper.status_lock?