aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2013-09-22 20:02:32 -0700
committerGuillermo Iguaran <guilleiguaran@gmail.com>2013-09-22 20:02:32 -0700
commitc21941b1c71b9254103929117670e7cbb53aa243 (patch)
tree5d7d9e8319db97feb754ef1859bc3ca1ea998c1a /railties/test
parent7dcde9fba4928eb68a5f6be7173af29ba775401c (diff)
parent5f98bb402b657f785e6bf1a49e83d44c6d3aa062 (diff)
downloadrails-c21941b1c71b9254103929117670e7cbb53aa243.tar.gz
rails-c21941b1c71b9254103929117670e7cbb53aa243.tar.bz2
rails-c21941b1c71b9254103929117670e7cbb53aa243.zip
Merge pull request #11060 from schneems/schneems/multi-stdout-logging-master
Only output Server logs in Development
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/commands/server_test.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/railties/test/commands/server_test.rb b/railties/test/commands/server_test.rb
index cb57b3c0cd..20afca2618 100644
--- a/railties/test/commands/server_test.rb
+++ b/railties/test/commands/server_test.rb
@@ -39,4 +39,14 @@ class Rails::ServerTest < ActiveSupport::TestCase
assert_equal 'production', server.options[:environment]
end
end
+
+ def test_log_stdout
+ args = ["-e", "development"]
+ options = Rails::Server::Options.new.parse!(args)
+ assert_equal true, options[:log_stdout]
+
+ args = ["-e", "production"]
+ options = Rails::Server::Options.new.parse!(args)
+ assert_equal false, options[:log_stdout]
+ end
end