提交 afe19112 编写于 作者: J Jon Leighton

Fix another CIfail 🔥 Deleting RAILS_ENV from ENV doesn't produce...

Fix another CIfail  🔥 Deleting RAILS_ENV from ENV doesn't produce the desired result if RACK_ENV is still defined. And in any case it's better to be explicit here, so just set RALS_ENV=development.
上级 fe5a6ec4
......@@ -91,7 +91,8 @@ def assert_body(expected, resp)
module Generation
# Build an application by invoking the generator and going through the whole stack.
def build_app(options = {})
@prev_rails_env = ENV.delete('RAILS_ENV')
@prev_rails_env = ENV['RAILS_ENV']
ENV['RAILS_ENV'] = 'development'
FileUtils.rm_rf(app_path)
FileUtils.cp_r(tmp_path('app_template'), app_path)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册