Frederick Cheung-2 wrote:
> 
> 
> Assuming for a moment (and I don't know if this is true) that you
> can't test application controller directly, there's no reason you
> cannot create a subclass of ApplicationController that only exists in
> your test and which you use to exercise the methods provided by
> ApplicationController.
> 
> Fred
> 
> 

That's a fair point, but it involves mocking out the ApplicationController
and everything it relies on, that's what the rails framework is there for,
just curious why I can't seem to access it.

-- 
View this message in context: 
http://old.nabble.com/Finding-it-difficult-to-test-a-before_filter-on-my-ApplicationController-tp28253771p28255673.html
Sent from the RubyOnRails Users mailing list archive at Nabble.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.

Reply via email to