diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-01-24 11:56:14 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-03-18 09:52:17 +0100 |
commit | fb2dc2adcad11cea8573536621d9a0841be7901b (patch) | |
tree | d310dc734435d1063edef09e232343aec712084d /railties/lib/rails/test_unit | |
parent | 7e9775bdb03f2f6648fe58958645fd8e31b5c79b (diff) | |
download | rails-fb2dc2adcad11cea8573536621d9a0841be7901b.tar.gz rails-fb2dc2adcad11cea8573536621d9a0841be7901b.tar.bz2 rails-fb2dc2adcad11cea8573536621d9a0841be7901b.zip |
document running a test by line number.
Diffstat (limited to 'railties/lib/rails/test_unit')
-rw-r--r-- | railties/lib/rails/test_unit/runner.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/lib/rails/test_unit/runner.rb b/railties/lib/rails/test_unit/runner.rb index c777091b57..d84f1cf9af 100644 --- a/railties/lib/rails/test_unit/runner.rb +++ b/railties/lib/rails/test_unit/runner.rb @@ -14,6 +14,13 @@ module Rails opts.separator "" opts.separator "Filter options:" + opts.separator "" + opts.separator <<-DESC + You can run a single test by appending the line number to filename: + + bin/rails test test/models/user_test.rb:27 + + DESC opts.on("-n", "--name [NAME]", "Only run tests matching NAME") do |name| |