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 in221b4ae
.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:
parent
2a5c116f12
commit
f5f834fb34
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue