diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-12-30 10:17:30 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-03-18 09:52:16 +0100 |
commit | c5532e06d9ef8b75f7443019aa1f34a3b697efdc (patch) | |
tree | 517dce6fb5c8e01ca9178388b41dfc21fa0b3543 /railties/lib/rails/commands/test.rb | |
parent | fb646969a24be3ec4506515ea89e19ca577a4c40 (diff) | |
download | rails-c5532e06d9ef8b75f7443019aa1f34a3b697efdc.tar.gz rails-c5532e06d9ef8b75f7443019aa1f34a3b697efdc.tar.bz2 rails-c5532e06d9ef8b75f7443019aa1f34a3b697efdc.zip |
spike of a `OptionParser` backed test runner.
Diffstat (limited to 'railties/lib/rails/commands/test.rb')
-rw-r--r-- | railties/lib/rails/commands/test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/railties/lib/rails/commands/test.rb b/railties/lib/rails/commands/test.rb new file mode 100644 index 0000000000..f75b07cf73 --- /dev/null +++ b/railties/lib/rails/commands/test.rb @@ -0,0 +1,9 @@ +ENV["RAILS_ENV"] = "test" + +require "rails/test_unit/runner" +options = Rails::TestRunner::Options.parse(ARGV) + +$: << File.expand_path("../../test", APP_PATH) + +# Config Rails backtrace in tests. +Rails::TestRunner.new(options).run |