All I want to do is set a session variable when I make a request. Here's my code:
class ProjectIntegrationTest < ActionController::IntegrationTest def test_truth user = user_for_test user.access_project_index_page end
def user_for_test open_session do |thing| def user.access_project_index_page
Actually it is the above line that is raising the exception - there is
no user variable / method in scope here.
This code lois pretty strange - are you really trying to define
singleton methods on users?
Fred