See ActiveRecordTestCase in active_record_unit.rb in actionpack. I defined a test_truth so Test::Unit::TestCase doesn't complain. The test count is slightly inflated, but if you care enough about not having request, response and controller instance variables setup then it's an option.
Adding a default method is certainly less magic than guessing the controller name. -- Kevin Clark http://glu.ttono.us _______________________________________________ Rails-core mailing list Rails-core@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-core