search for: myrailscontrollertest

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

2006 Jun 17
0
Some Rails and ZenTest questions... [long]
...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 ControllerTestCase and the abstract per controller test cases, like so: class MyRailsControllerTest < Test::Rails::ControllerTestCase def setup(filename="") return if filename=="" return if convert_classname == File.basename (filename,"_abstract.rb") @controller_class_name = File (basename,"_test_abstract.rb").classify super() #...