From eb63faaa1af7ef28ae1a716d068acc447e28c174 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Fri, 18 Jan 2019 09:53:12 +0900 Subject: 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. --- railties/test/commands/server_test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'railties/test/commands') 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 -- cgit v1.2.3