Hey, I'm currently writing some tests and getting a strange error. My ApplicationController has following protected method: before_filter :load_user_vars
def load_user_vars @current_user = current_user [other protected method] @current_character = @current_user.character ... end When I now run a test and the @current_character is being used in a controller that is being tested I get a "RuntimeError: Called id for nil" Why is that protected method not being called since it's a before_filter method? And how can I make my test to run this method and declare these variables? Thanks! -- Posted via http://www.ruby-forum.com/. -- 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.

