The following yields an error:
require 'test/unit'
Test::Unit.setup_argv(["tests"])
$ run_tests.rb:4: undefined method `setup_argv' for Test::Unit:Module (NoMethodError)
How can I make Ruby use the Test::Unit class instead of the Test::Unit module for the method call?
EDIT Ruby 1.8.7
The reason for the error is that setup_argv is not available in Ruby 1.8.7.
Test::Unit is always a module. There is no class.
See the 1.8.7 docs here for how to use:
http://apidock.com/ruby/v1_8_7_330/Test/Unit