提交 f200a52e 编写于 作者: Y yuuji.yaginuma

remove useless `gemfile` option

Rails application for test creates with `--skip-gemfile` option.
https://github.com/rails/rails/blob/master/railties/test/isolation/abstract_unit.rb#L333

Therefore, regardless of the option, Gemfile is not created.
上级 c48016c5
......@@ -117,11 +117,6 @@ def build_app(options = {})
end
end
gemfile_path = "#{app_path}/Gemfile"
if options[:gemfile].blank? && File.exist?(gemfile_path)
File.delete gemfile_path
end
routes = File.read("#{app_path}/config/routes.rb")
if routes =~ /(\n\s*end\s*)\Z/
File.open("#{app_path}/config/routes.rb", "w") do |f|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册