Skip to content

Commit

Permalink
remove useless gemfile option
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
y-yagi committed Sep 12, 2016
1 parent c48016c commit f200a52
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions railties/test/isolation/abstract_unit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit f200a52

Please sign in to comment.