Browse files

Revert "Merge pull request #12778 from etehtsea/rake-default-fix"

This reverts commit ec0a2b5, reversing
changes made to a8bd7b1.

This reverts commit 555ec36

This reverts commit 555ec36

By default, Rails uses the `default` Rake task to run all tests.
This commit changed the environment of the default task to `development`.
This clears the development database and has other negative consequences.
  • Loading branch information...
senny committed May 28, 2014
1 parent abd6461 commit 99873ca1ea98d73c73f8be60dfce0a54224f4ea8
Showing with 1 addition and 5 deletions.
  1. +0 −4 railties/
  2. +1 −1 railties/lib/rails/test_unit/railtie.rb
@@ -26,10 +26,6 @@
*Matthew Draper*
-* Do not set the Rails environment to test by default when using test_unit Railtie.
- *Konstantin Shabanov*
* Remove sqlite3 lines from `.gitignore` if the application is not using sqlite3.
*Dmitrii Golub*
@@ -1,4 +1,4 @@
-if defined?(Rake.application) && Rake.application.top_level_tasks.grep(/^test(?::|$)/).any?
+if defined?(Rake.application) && Rake.application.top_level_tasks.grep(/^(default$|test(:|$))/).any?
ENV['RAILS_ENV'] ||= 'test'

0 comments on commit 99873ca

Please sign in to comment.