search for: abstracttest

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

Did you mean: abstractness
2006 Jun 17
0
Some Rails and ZenTest questions... [long]
...ssname == File.basename (filename,"_abstract.rb") @controller_class_name = File (basename,"_test_abstract.rb").classify super() # drop the filename parameter end def convert_classname self.class.to_s.tabelize.singularize end end class TypicalControllerAbstractTest < MyRailsControllerTest fixtures :typical_fixture def setup super(__FILE__) end end Now I can extend from TypicalControllerAbstractTest for all my tests without repeating the same class lookup code. The remaining setup still isn''t as DRY as i would like as its repea...