Hallo -- I have a function in test_helper.rb that looks not a little
like this:

def
login(username="gowondapiddlehead",unhashed_password="gowonda_piddlehead")
postlogin,:system_user=>{:username=>username,:unhashed_password=>unhashed_password})
assert_redirected_tocontroller=>'home')
assert_not_nil(session[:system_user_id])
system_user=SystemUser.find(session[:system_user_id])
assert_equal(username,system_user.username,"Login name should match
session name.")
end

When I run the test, however, I get the following error:

1) Error:
test_index(HomeControllerTest):
NoMethodError: undefined method `login' for Test::Unit::TestCase:Class
test/functional/home_controller_test.rb:18:in `test_index'

I guess this is because I need to specify the controller being called as
well as the action in the post() function.
Does anyone know how to do this?
Cheers,
doug.