1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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.
This commit is contained in:
yuuji.yaginuma 2017-01-07 15:34:52 +09:00
parent 2a5c116f12
commit f5f834fb34

View file

@ -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