D
Daniel Berger
Hi all,
If I have a module, and I want to test that module's methods
independently within TestUnit, what is the best approach?
Am I obligated to define module_function for each method so that I can
do assert_equal("foo",MyModule.foo)? Or am I just supposed to
"include" the module in the subclass of Test::Unit::TestCase and use
it that way?
Advice appreciated.
Dan
If I have a module, and I want to test that module's methods
independently within TestUnit, what is the best approach?
Am I obligated to define module_function for each method so that I can
do assert_equal("foo",MyModule.foo)? Or am I just supposed to
"include" the module in the subclass of Test::Unit::TestCase and use
it that way?
Advice appreciated.
Dan