module Authentication
  def logged_in
    @user ||= create(:user)

    sign_in(@user, :bypass => Devise.masquerade_bypass_warden_callback)
  end

  def current_user
    controller.send(:current_user)
  end
end


module Authentication
  def logged_in
    @user ||= create(:user)
    sign_in(@user)
  end

  def current_user
    controller.send(:current_user)
  end
end


Fix sign_in by_pass option for the auth test
Fix sign_in by_pass option for the auth test
