diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-01-07 15:34:52 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-01-09 10:07:53 +0900 |
commit | f5f834fb349c62efdb3db45b8ec392c9f70826f0 (patch) | |
tree | 4909ff034acf819ac932be132a23db063f78cd8c /railties/test/commands | |
parent | 2a5c116f12c7716399f5da3fe788f7e23ae67c4c (diff) | |
download | rails-f5f834fb349c62efdb3db45b8ec392c9f70826f0.tar.gz rails-f5f834fb349c62efdb3db45b8ec392c9f70826f0.tar.bz2 rails-f5f834fb349c62efdb3db45b8ec392c9f70826f0.zip |
improve server default options test
This test was added in 221b4ae.
221b4ae modified to return the same result even if `Rails::Server#default_options`
is called more than once. Therefore, also use `Rails::Server#default_options`
instead of `ServerCommand#default_options` in test.
Diffstat (limited to 'railties/test/commands')
-rw-r--r-- | railties/test/commands/server_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/test/commands/server_test.rb b/railties/test/commands/server_test.rb index 527529aa52..e3dfc3e82b 100644 --- a/railties/test/commands/server_test.rb +++ b/railties/test/commands/server_test.rb @@ -122,11 +122,11 @@ class Rails::ServerTest < ActiveSupport::TestCase end def test_default_options - old_default_options = parse_arguments + server = Rails::Server.new + old_default_options = server.default_options Dir.chdir("..") do - default_options = parse_arguments - assert_equal old_default_options, default_options + assert_equal old_default_options, server.default_options end end |