diff options
author | Orhan Toy <toyorhan@gmail.com> | 2019-04-01 18:39:15 +0200 |
---|---|---|
committer | Orhan Toy <toyorhan@gmail.com> | 2019-04-01 18:39:15 +0200 |
commit | db4c6f5ecbdc2851fe5947fa36725f43cce52280 (patch) | |
tree | a31d58a4a8f57f6b1d258c34235de7ffb6f78ca6 /railties/test | |
parent | e0a9e0259c56700fc83b3e886cdf7c04f6a83495 (diff) | |
download | rails-db4c6f5ecbdc2851fe5947fa36725f43cce52280.tar.gz rails-db4c6f5ecbdc2851fe5947fa36725f43cce52280.tar.bz2 rails-db4c6f5ecbdc2851fe5947fa36725f43cce52280.zip |
Include final newline in generated .ruby-version
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index d5a3599f67..d30cd9e718 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -968,6 +968,8 @@ class AppGeneratorTest < Rails::Generators::TestCase else assert_match(/#{RUBY_ENGINE}-#{RUBY_ENGINE_VERSION}/, content) end + + assert content.end_with?("\n"), "expected .ruby-version to end with newline" end end |