I tried:
ruby -I test test/unit/model_test.rb -n "the truth"
Loaded suite test/unit/model_test
Started
Finished in 0.000297873 seconds.
0 tests, 0 assertions, 0 failures, 0 errors
The following test is in the model_test.rb file:
test "the truth" do
assert true
end
Changing the name of the test ("the truth") does not affect the
output: apparently it is not finding the test.
It does find the test file. Changing the file name throws an error.
How to run a single test method? (Not a single test file.)
Thanks!
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.