提交 6b8e6c4f 编写于 作者: K Kasper Timm Hansen 提交者: GitHub

Merge pull request #26579 from y-yagi/remove_unnecessary_rails_env_setting

remove unnecessary `RAILS_ENV` setting
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
......
# 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__)]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册