Hi,
I have a before_filter ''authorize'' defined in the application
controller
that checks for a user in the session. However, when I test a controller
(that has before_filter ''authorize'') like this:
def test_new_without_login
get :new
assert_redirected_to new_session_path
end
the fails because the response is ''success'' instead. When I
set a
breakpoint in the ''authorize'' method I see that it is in fact
never
executed.
Do I need to do something so that methods on other controllers are
executed, or is this a bug (I am using edge rails)?
Thanks!
Ingo
--
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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---