提交 672ce11d 编写于 作者: D David Chelimsky 提交者: José Valim

only abort in test_help in production env

Signed-off-by: NJosé Valim <jose.valim@gmail.com>
上级 7223fe7f
# 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'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册