aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/commands
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-08-19 14:38:31 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-08-21 05:44:11 +0900
commit2904ee23bfc1a442b801f0d35e8e49d51a6d47b6 (patch)
tree47e934d8c73aa67ac13ae7e7a6440716d740f73d /railties/test/commands
parent99c604f1f9de2f2a6fc3d0aec4f274cb05b48c69 (diff)
downloadrails-2904ee23bfc1a442b801f0d35e8e49d51a6d47b6.tar.gz
rails-2904ee23bfc1a442b801f0d35e8e49d51a6d47b6.tar.bz2
rails-2904ee23bfc1a442b801f0d35e8e49d51a6d47b6.zip
Make `restart` and `dev:cache` tasks work when customizing pid file path
Originally, it hard-coded pid file path. It can not be removed when customizing pid file path. But rake task can not get pid file path. Therefore, do not remove file in rake task, makes it possible to judge whether it is restart from the argument of the command and removes the file in server command. Fixes #29306
Diffstat (limited to 'railties/test/commands')
-rw-r--r--railties/test/commands/server_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/commands/server_test.rb b/railties/test/commands/server_test.rb
index eb739db9d1..556c2289e7 100644
--- a/railties/test/commands/server_test.rb
+++ b/railties/test/commands/server_test.rb
@@ -190,7 +190,7 @@ class Rails::ServerTest < ActiveSupport::TestCase
ARGV.replace args
options = parse_arguments(args)
- expected = "bin/rails server -p 4567 -b 127.0.0.1 -c dummy_config.ru -d -e test -P tmp/server.pid -C"
+ expected = "bin/rails server -p 4567 -b 127.0.0.1 -c dummy_config.ru -d -e test -P tmp/server.pid -C --restart"
assert_equal expected, options[:restart_cmd]
ensure