aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2015-06-13 11:56:32 +0200
committerYves Senn <yves.senn@gmail.com>2015-06-13 11:58:43 +0200
commit2e5960490936890624cdb2e23c9da4f2b12c4fbf (patch)
tree339c043703c0ddce24136174d7cebeb8ad0caa63 /tools
parentc0b4654dbafd662a9967432e188970d404ab381d (diff)
downloadrails-2e5960490936890624cdb2e23c9da4f2b12c4fbf.tar.gz
rails-2e5960490936890624cdb2e23c9da4f2b12c4fbf.tar.bz2
rails-2e5960490936890624cdb2e23c9da4f2b12c4fbf.zip
make it possible to customize the executable inside rereun snippets.
In the Rails repository we use a `bin/test` executable to run our tests. However the rerun snippets still included `bin/rails test`: BEFORE: ``` Failed tests: bin/rails test test/cases/adapters/postgresql/schema_test.rb:91 ``` AFTER: ``` Failed tests: bin/test test/cases/adapters/postgresql/schema_test.rb:91 ```
Diffstat (limited to 'tools')
-rw-r--r--tools/test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/test.rb b/tools/test.rb
index 50cce2081a..70f295b554 100644
--- a/tools/test.rb
+++ b/tools/test.rb
@@ -8,3 +8,5 @@ module Rails
@root ||= Pathname.new(COMPONENT_ROOT)
end
end
+
+Rails::TestUnitReporter.executable = "bin/test"