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.
This commit is contained in:
yuuji.yaginuma 2016-09-12 18:32:07 +09:00
parent c48016c514
commit f200a52e16

@ -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|