diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2019-01-18 09:53:12 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2019-01-18 09:58:55 +0900 |
commit | eb63faaa1af7ef28ae1a716d068acc447e28c174 (patch) | |
tree | 9ec463424f4b2e9b5927476b7fd0585dc8f976aa /railties/test/commands/server_test.rb | |
parent | 9e4283eb1d158ada3395d289228f128f6a56ff32 (diff) | |
download | rails-eb63faaa1af7ef28ae1a716d068acc447e28c174.tar.gz rails-eb63faaa1af7ef28ae1a716d068acc447e28c174.tar.bz2 rails-eb63faaa1af7ef28ae1a716d068acc447e28c174.zip |
Revert "Remove deprecated `server` argument from the rails server command"
This reverts commit fa791fb8e2a718b5d0430c7ca5a454678dfc192d.
Reason: `server` argument was deprecated in Rails 6.0. Ref: #32058.
Diffstat (limited to 'railties/test/commands/server_test.rb')
-rw-r--r-- | railties/test/commands/server_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/test/commands/server_test.rb b/railties/test/commands/server_test.rb index 14d63a78e0..25b89ecbd8 100644 --- a/railties/test/commands/server_test.rb +++ b/railties/test/commands/server_test.rb @@ -38,6 +38,10 @@ class Rails::Command::ServerCommandTest < ActiveSupport::TestCase assert_no_match(/Maybe you meant/, output) end + def test_using_positional_argument_deprecation + assert_match(/DEPRECATION WARNING/, run_command("tin")) + end + def test_using_known_server_that_isnt_in_the_gemfile assert_match(/Could not load server "unicorn". Maybe you need to the add it to the Gemfile/, run_command("-u", "unicorn")) end |