diff options
author | Pat Allan <pat@freelancing-gods.com> | 2017-07-22 22:45:53 +1000 |
---|---|---|
committer | Pat Allan <pat@freelancing-gods.com> | 2017-08-14 19:00:24 +0200 |
commit | d435c92721a1fbecf0bc6d1b6c5cf95d228c851a (patch) | |
tree | c08015501962c1f6c513e526ed8959880a9e921b /railties/test/generators | |
parent | 5949cc05d395f5e1435d04d4adee7b26f13a517d (diff) | |
download | rails-d435c92721a1fbecf0bc6d1b6c5cf95d228c851a.tar.gz rails-d435c92721a1fbecf0bc6d1b6c5cf95d228c851a.tar.bz2 rails-d435c92721a1fbecf0bc6d1b6c5cf95d228c851a.zip |
Railties updates for frozen string literals.
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 2 | ||||
-rw-r--r-- | railties/test/generators/shared_generator_tests.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index ff73014046..6f933a3edd 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -880,7 +880,7 @@ class AppGeneratorTest < Rails::Generators::TestCase def test_after_bundle_callback path = "http://example.org/rails_template" - template = %{ after_bundle { run 'echo ran after_bundle' } } + template = %{ after_bundle { run 'echo ran after_bundle' } }.dup template.instance_eval "def read; self; end" # Make the string respond to read check_open = -> *args do diff --git a/railties/test/generators/shared_generator_tests.rb b/railties/test/generators/shared_generator_tests.rb index 5e75879964..3ce0dd4b6f 100644 --- a/railties/test/generators/shared_generator_tests.rb +++ b/railties/test/generators/shared_generator_tests.rb @@ -77,7 +77,7 @@ module SharedGeneratorTests def test_template_is_executed_when_supplied_an_https_path path = "https://gist.github.com/josevalim/103208/raw/" - template = %{ say "It works!" } + template = %{ say "It works!" }.dup template.instance_eval "def read; self; end" # Make the string respond to read check_open = -> *args do |