I'm new to Rails and new to Rails testing. I have a few questions:
First, the most important question. How do I get line numbers to be
reported with my errors when testing. Here is what I get back on a
josh@josh-laptop:~/d/test$ ruby unit/line_test.rb -n test_update
Loaded suite unit/line_test
Finished in 0.066663 seconds.
NameError: undefined local variable or method `sdf' for
1 tests, 0 assertions, 0 failures, 1 errors
It is tough to debug without a line number and filename. From the code
samples I've seen, people generally get back a more verbose error
report. How do I enable this?
The next question is a small one. What is the difference between:
-ruby test -I unit/line_test.rb
-ruby test unit/line_test.rb
I'd like to know the difference since I'm unable to use the command in
the Rails Testing guide (third one).