mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
remove unnecessary RAILS_ENV
setting
`RAILS_ENV` is always set in the initialization process of test runner.
9fa07095a3/railties/lib/rails/test_unit/minitest_plugin.rb (L74)
Therefore, it is not necessary to set in `test_helper`.
This commit is contained in:
parent
1996624216
commit
9a80f52541
2 changed files with 0 additions and 4 deletions
|
@ -1,4 +1,3 @@
|
|||
ENV['RAILS_ENV'] ||= 'test'
|
||||
require File.expand_path('../../config/environment', __FILE__)
|
||||
require 'rails/test_help'
|
||||
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
# Configure Rails Environment
|
||||
ENV["RAILS_ENV"] = "test"
|
||||
|
||||
require File.expand_path("../../<%= options[:dummy_path] -%>/config/environment.rb", __FILE__)
|
||||
<% unless options[:skip_active_record] -%>
|
||||
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../<%= options[:dummy_path] -%>/db/migrate", __FILE__)]
|
||||
|
|
Loading…
Reference in a new issue