allow use of minitest-rails gem with test runner

This commit is contained in:
Chris Kottom 2015-11-30 19:13:14 +01:00
parent f746534ca4
commit 9ebda29135
2 changed files with 7 additions and 1 deletions

@ -1,3 +1,9 @@
* Allow use of minitest-rails gem with Rails test runner.
Fixes #22455.
*Chris Kottom*
* Add `bin/test` script to rails plugin.
`bin/test` can use the same API as `bin/rails test`.

@ -14,7 +14,7 @@ def aggregated_results
SummaryReporter.prepend AggregatedResultSuppresion
def self.plugin_rails_options(opts, options)
executable = Rails::TestUnitReporter.executable
executable = ::Rails::TestUnitReporter.executable
opts.separator ""
opts.separator "Usage: #{executable} [options] [files or directories]"
opts.separator "You can run a single test by appending a line number to a filename:"