run an individual active_record test?

I'm investigating something that I'm not sure if it's a problem with my
app, or with Rails. I'm writing an active_Record test in base_test.rb
to check it (and finding that it's passing when I don't think it
should). I'd like to run this test all by itself so I can easily tail
the debug.log to see the precise SQL calls it's generating. Is there an
easy way to do this? In the Rails app I know I can run "ruby
test/units/some_test.rb -n test_something" to just run test_something,
but I can seem to find what additional parameter to pass to "rake
test_mysql TEST=base_test.rb" to get a similar effect.

Instead of using rake, do it like :

ruby -I"connections/native_mysql" base_test.rb -n whatever_test

Worked Perfectly. Thanks.

Pratik wrote: