Hi, Thanks for all of the replies. That has really made things a lot clearer for me.
So, to summarize: 'url_for' is a method defined in ActionController::Base. @controller is an instance variable initiated by ActionController::TestCase containing a reference to my controller (PagesController). PagesController inherits from ApplicationController. ApplicationController inherits from ActionController::Base. Therefore, in ActionController::TestCase, by prepending a method call with @controller, owing to the aforementioned class hierarchy, I can access methods defined in ActionController::Base. Would that be correct? Thanks again for your help. -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.