diff options
author | Pat Allan <pat@freelancing-gods.com> | 2017-08-14 19:57:45 +0200 |
---|---|---|
committer | Pat Allan <pat@freelancing-gods.com> | 2017-08-14 19:57:45 +0200 |
commit | 7f6a31433a09875828431d0f11029bf0dbddb112 (patch) | |
tree | 3a497cfc3894ee0f953aa64288e115fdcd2d624e /railties/test | |
parent | 7b01ae0bc36a9e48b5b204a4839bd1c6fbfa840b (diff) | |
download | rails-7f6a31433a09875828431d0f11029bf0dbddb112.tar.gz rails-7f6a31433a09875828431d0f11029bf0dbddb112.tar.bz2 rails-7f6a31433a09875828431d0f11029bf0dbddb112.zip |
Allow for frozen string pragma in generated files.
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/isolation/abstract_unit.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/isolation/abstract_unit.rb b/railties/test/isolation/abstract_unit.rb index 24471ec543..e79bf09654 100644 --- a/railties/test/isolation/abstract_unit.rb +++ b/railties/test/isolation/abstract_unit.rb @@ -224,8 +224,8 @@ module TestHelpers FileUtils.mkdir_p(dir) app = File.readlines("#{app_path}/config/application.rb") - app.insert(2, "$:.unshift(\"#{dir}/lib\")") - app.insert(3, "require #{name.inspect}") + app.insert(4, "$:.unshift(\"#{dir}/lib\")") + app.insert(5, "require #{name.inspect}") File.open("#{app_path}/config/application.rb", "r+") do |f| f.puts app |