diff options
author | schneems <richard.schneeman@gmail.com> | 2016-02-26 08:22:24 -0600 |
---|---|---|
committer | schneems <richard.schneeman@gmail.com> | 2016-02-26 08:22:24 -0600 |
commit | 8374b2fc852050cd26ddd91cf82e3d819a2b63ef (patch) | |
tree | e3518871362c2408a79bc377d8a09e2b95ed5666 /railties/test/generators | |
parent | 56ca2061df83a307943a0ffdfe6f5f4ed5846cf7 (diff) | |
download | rails-8374b2fc852050cd26ddd91cf82e3d819a2b63ef.tar.gz rails-8374b2fc852050cd26ddd91cf82e3d819a2b63ef.tar.bz2 rails-8374b2fc852050cd26ddd91cf82e3d819a2b63ef.zip |
[close #23681] Use puma 3.0.0+
Puma 3.0 and up introduced compatibility to read from `config/puma.rb` when booting from the command `$ rails server`https://github.com/puma/puma/pull/856.
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index ec8ec4787f..c5f9e11ad3 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -366,6 +366,11 @@ class AppGeneratorTest < Rails::Generators::TestCase end end + def test_generator_defaults_to_puma_version + run_generator [destination_root] + assert_gem "puma", "'~> 3.0'" + end + def test_generator_if_skip_puma_is_given run_generator [destination_root, "--skip-puma"] assert_no_file "config/puma.rb" |