aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/commands
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2019-01-18 09:53:12 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2019-01-18 09:58:55 +0900
commiteb63faaa1af7ef28ae1a716d068acc447e28c174 (patch)
tree9ec463424f4b2e9b5927476b7fd0585dc8f976aa /railties/test/commands
parent9e4283eb1d158ada3395d289228f128f6a56ff32 (diff)
downloadrails-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')
-rw-r--r--railties/test/commands/server_test.rb4
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