suppose you want to test a test/controllers/static_pages_controller_test.rb
rails test test/controllers/static_pages_controller_test.rb
the results will be
(static-pages) $ rails test test/controllers/static_pages_controller_test.rb Running via Spring preloader in process 2430 Run options: --seed 45024
Running:
..
Finished in 0.900028s, 2.2222 runs/s, 2.2222 assertions/s.
2 runs, 2 assertions, 0 failures, 0 errors, 0 skips