mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
only abort in test_help in production env
Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
committed by
José Valim
parent
7223fe7faf
commit
672ce11d68
@@ -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?
|
||||
|
||||
require 'test/unit'
|
||||
require 'active_support/core_ext/kernel/requires'
|
||||
|
||||
Reference in New Issue
Block a user