From 4b4bfacb19ed149c246a91a6070228c429052d49 Mon Sep 17 00:00:00 2001 From: Philippe Creux Date: Thu, 22 Apr 2010 10:53:50 -0700 Subject: [PATCH] Abort testing if in development or production env --- railties/lib/rails/test_help.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/railties/lib/rails/test_help.rb b/railties/lib/rails/test_help.rb index 3ce4e2c..0ad4239 100644 --- a/railties/lib/rails/test_help.rb +++ b/railties/lib/rails/test_help.rb @@ -1,6 +1,6 @@ # Make double-sure the RAILS_ENV is set to test, # so fixtures are loaded to the right database -abort("Abort testing: Your Rails environment is not running in test mode!") unless Rails.env.test? +abort("Abort testing: Your Rails environment is running in #{Rails.env} mode!") if Rails.env.development? or Rails.env.production? require 'test/unit' require 'active_support/core_ext/kernel/requires' -- 1.7.0