JumpstartLab/curriculum — pull request #1014 by VikiAnn (2014-11-17 03:17:20+00:00)
Title: Change current_user so it actually returns nil

User.find(session[:user_id]) doesn't actually return nil, it throws the following error:
Failure/Error: expect(controller.current_user.id).to eq(user.id)
ActiveRecord::RecordNotFound:
Couldn't find User without an ID

If we actually want nil (which we probably do if we want a falsey value for if statements later) we can do User.where(id: session[:user_id]).take.

@stevekinney (I saw you post in 1407 that we can tag you, so I am :P Not sure if this is what you meant.)