test/test_helper.rb
# Load login_as helper if we are doing a functional or integration test    
Load login_as helper if we are doing a functional or integration test
Load login_as helper if we are doing a functional or integration test
def login_as(user)
    user = User.current_user = users(user)
    @request.session[:current_user_id] = User.current_user.id
    user
  end
def login_as ( user ) user = User . current_user = users ( user ) @request . session [ :current_user_id ] = User . current_user . id user end
Load login_as helper if we are doing a functional or integration test
Load login_as helper if we are doing a functional or integration test
user
<not_specific>