diff options
author | Arthur Neves <arthurnn@gmail.com> | 2016-02-27 13:02:02 -0500 |
---|---|---|
committer | Arthur Neves <arthurnn@gmail.com> | 2016-02-27 13:03:57 -0500 |
commit | 2abcdfd978fdcd491576a237e8c6be04ddaf884d (patch) | |
tree | 0310ea2defd610061d73047413a870b5bb4c1133 /railties/test/isolation | |
parent | 3174b5f92a43e4bfdf4f833389b1ac819ac2cdc5 (diff) | |
download | rails-2abcdfd978fdcd491576a237e8c6be04ddaf884d.tar.gz rails-2abcdfd978fdcd491576a237e8c6be04ddaf884d.tar.bz2 rails-2abcdfd978fdcd491576a237e8c6be04ddaf884d.zip |
Remove load_paths file
Diffstat (limited to 'railties/test/isolation')
-rw-r--r-- | railties/test/isolation/abstract_unit.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/railties/test/isolation/abstract_unit.rb b/railties/test/isolation/abstract_unit.rb index 66a8cf54af..b993db88c1 100644 --- a/railties/test/isolation/abstract_unit.rb +++ b/railties/test/isolation/abstract_unit.rb @@ -311,10 +311,6 @@ module TestHelpers end def boot_rails - # FIXME: shush Sass warning spam, not relevant to testing Railties - Kernel.silence_warnings do - require File.expand_path('../../../../load_paths', __FILE__) - end end end end @@ -336,12 +332,8 @@ Module.new do FileUtils.rm_rf(app_template_path) FileUtils.mkdir(app_template_path) - environment = File.expand_path('../../../../load_paths', __FILE__) - require_environment = "-r #{environment}" - - `#{Gem.ruby} #{require_environment} #{RAILS_FRAMEWORK_ROOT}/railties/exe/rails new #{app_template_path} --skip-gemfile --skip-listen --no-rc` + `#{Gem.ruby} #{RAILS_FRAMEWORK_ROOT}/railties/exe/rails new #{app_template_path} --skip-gemfile --skip-listen --no-rc` File.open("#{app_template_path}/config/boot.rb", 'w') do |f| - f.puts "require '#{environment}'" f.puts "require 'rails/all'" end end unless defined?(RAILS_ISOLATED_ENGINE) |