diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-09-12 18:32:07 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-09-12 18:32:07 +0900 |
commit | f200a52e164f9fa26bc4d0813c14281674c105d2 (patch) | |
tree | bfcaaac8e037e7594aec359ac30507735d69cb57 /railties | |
parent | c48016c514f8991cb4f70eed673672a1440e271f (diff) | |
download | rails-f200a52e164f9fa26bc4d0813c14281674c105d2.tar.gz rails-f200a52e164f9fa26bc4d0813c14281674c105d2.tar.bz2 rails-f200a52e164f9fa26bc4d0813c14281674c105d2.zip |
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.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/isolation/abstract_unit.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/railties/test/isolation/abstract_unit.rb b/railties/test/isolation/abstract_unit.rb index b9b11504dc..8c1fe43a10 100644 --- a/railties/test/isolation/abstract_unit.rb +++ b/railties/test/isolation/abstract_unit.rb @@ -117,11 +117,6 @@ module TestHelpers 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| |