Thanks.
Here is what I've learned so far:
I'm testing rails code. The generated rails test stubs have this line:
require File.dirname(__FILE__) + '/../test_helper'
app/test/test_helper.rb contains this line:
require 'test_help'
lib/ruby/gems/1.8/rails-1.1.6/lib/test_help.rb contains this line:
require 'test/unit'
lib/ruby/1.8/test/unit.rb contains these lines:
at_exit do
unless $! || Test::Unit.run?
exit Test::Unit::AutoRunner.run
end
end
I think this is the magic that runs the tests.
-Kelly
On Feb 14, 8:46 am, "Austin Ziegler" <halosta...@gmail.com> wrote:
> On 2/14/07, kelly <railsina...@gmail.com> wrote:
>
> > I guess I'm still learning ruby.
>
> > While looking through the test code I realized I don't see what
> > actually _runs_.
>
> A TestRunner.
>
> See the files in lib/1.8/test/unit for more information if you want to
> understand Test::Unit.
>
> -austin
> --
> Austin Ziegler * halosta...@gmail.com *http://www.halostatue.ca/
> * aus...@halostatue.ca *http://www.halostatue.ca/feed/
> * aus...@zieglers.ca