I'm trying to test the code in my helpers, using the great Viget Labs  
helper_me_test plugin.  However, I'm running into an oddity (unrelated  
to the plugin - it was happening when I was trying to roll my own  
solution as well).

Here are snippets of the relevant code:

http://pastie.org/private/5yop8zcceszxqfzedhata

Basically, the ApplicationController defines a current_user method,  
that returns a RackLdap object.

The helper I'm testing is calling that method.

This works fine when the app is running.  But when I try to test, it  
seems like it's trying to call ApplicationHelperTest::current_user  
instead of ApplicationController::current_user, and dying.

Any suggestions on how I can get past this?  I've been staring at it  
for a couple of days and am stumped.

--Wade

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to