Application Controller helper methods not available for Views Specs

I have a helper method called current_user in my Application Controller (used with Authlogic).

Spec for views using that helper fail (but the view is working when i use the browser)

ActionView::Template::Error: undefined local variable or method 'current_user' for #<#:0x00000002004248>

I use rspec 2.6.0.

Anyone had the same problem? Please advice. Thanks

12
задан Dorian 19 May 2011 в 10:09
поделиться