search for: myanothertestcase

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

2007 Nov 08
1
Running tests from another test case
I''m in the position that would be really useful for me to run in a testcase a test belonging to another testcase. Assuming I do not want to use modules, how could I do that? My code would be something like this: class MyTestCase < Test::Rails:TestCase def myTest matc = MyAnotherTestCase.new end end The code above seems to work but when I run MyTestCase all the tests belonging to MyAnotherTestCase are executed. What would I need to do to execute only a single test from MyAnotherTestCase? Any suggestions? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~----...