render :text => "You are not authroized to preform this
action", :status => 403
return false
end
end
This works fine, but It makes it hard for me to functional test my
controllers. Because now when I run my functional tests they all fail
with 403 authentication errors.
This works fine, but It makes it hard for me to functional test my
controllers. Because now when I run my functional tests they all fail
with 403 authentication errors.
Also for anyone out there, don’t forget to include any fixtures that
you code will you at any point during this test. For me that was
including the rights & roles fixtures that my authentication
controller uses.