search for: _test_abstract

Displaying 1 result from an estimated 1 matches for "_test_abstract".

2006 Jun 17
0
Some Rails and ZenTest questions... [long]
...Test::Rails::ControllerTestCase resolve the file->class mapping. However this code is getting repetitive between controller trees def setup return if convert_classname == File.basename (__FILE__,"_abstract.rb") @controller_class_name = File.basename (__FILE__,"_test_abstract.rb").classify super end def convert_classname self.class.to_s.tabelize.singularize end Notice that none of the code is different for the different controller tress, but it does make use of the magic __FILE__. I''ve tried introducing another layer between Control...