diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-02-22 16:22:58 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-02-22 17:18:19 +0900 |
commit | 6debcaaeab094559d7a3d2e882e11a7d05c552f3 (patch) | |
tree | 72fe5a248fd06a03475c7aa859682f06f5c23063 /railties/lib/rails/plugin | |
parent | df1faf601cb20b5728c95fc10e33b28ae6859bd8 (diff) | |
download | rails-6debcaaeab094559d7a3d2e882e11a7d05c552f3.tar.gz rails-6debcaaeab094559d7a3d2e882e11a7d05c552f3.tar.bz2 rails-6debcaaeab094559d7a3d2e882e11a7d05c552f3.zip |
Add wrapper for plugin's test runner
Currently, private API is directly used in `bin/test`. It is necessary to change
`bin/test` when changing private API.
To avoid this, provide a wrapper file and modify `bin/test` to just require that
file.
Diffstat (limited to 'railties/lib/rails/plugin')
-rw-r--r-- | railties/lib/rails/plugin/test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/lib/rails/plugin/test.rb b/railties/lib/rails/plugin/test.rb new file mode 100644 index 0000000000..ff043b488e --- /dev/null +++ b/railties/lib/rails/plugin/test.rb @@ -0,0 +1,7 @@ +require "rails/test_unit/minitest_plugin" + +Rails::TestUnitReporter.executable = "bin/test" + +Minitest.run_via = :rails + +require "active_support/testing/autorun" |