Skip to content

Commit

Permalink
only abort in test_help in production env
Browse files Browse the repository at this point in the history
Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information
dchelimsky authored and josevalim committed Sep 24, 2010
1 parent 7223fe7 commit 672ce11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions railties/lib/rails/test_help.rb
Original file line number Diff line number Diff line change
@@ -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?
# Make double-sure the RAILS_ENV is not set to production,
# so fixtures aren't loaded into that environment
abort("Abort testing: Your Rails environment is not running in test mode!") if Rails.env.production?

This comment has been minimized.

Copy link
@tilsammans

tilsammans Sep 25, 2010

Contributor

Message should now actually be "Abort testing: Your Rails environment is running in production mode!"


require 'test/unit'
require 'active_support/core_ext/kernel/requires'
Expand Down

0 comments on commit 672ce11

Please sign in to comment.