I noticed that RubyUnit is divided into one class or module per file.
Some of the modules seem to be included only once.
The various files have a bunch of requires one to the other.
When using RubyUnit, it seems one has to write code like this:
require 'runit/cui/testrunner'
RUNIT::TestCase.subclasses.each do | sc |
RUNIT::CUI::TestRunner.run(sc.suite)
end
with lots of :: and random names.
Is RubyUnit a good example of how to organized Ruby code? If so,
please discuss. If not, what is? (And discuss that.)
Thanks,
Ronald E Jeffries
http://www.XProgramming.com
http://www.objectmentor.com