1
0
Fork 0
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:
yuuji.yaginuma 2016-09-22 17:25:09 +09:00
parent 1996624216
commit 9a80f52541
2 changed files with 0 additions and 4 deletions

View file

@ -1,4 +1,3 @@
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'

View file

@ -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__)]