aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorEileen M. Uchitelle <eileencodes@users.noreply.github.com>2017-10-04 09:48:36 -0400
committerGitHub <noreply@github.com>2017-10-04 09:48:36 -0400
commitbd2542b74fe528d95f51d8f3668b0f7d6d8af974 (patch)
tree9a0fbb2d0fe7c978172aede8117401cbf3b48b36 /railties/test
parentdf2814671cce80fd0d8f290e5a70bf518880d6fa (diff)
parent59a02fb7bcbe68f26e1e7fdcec45c00c66e4a065 (diff)
downloadrails-bd2542b74fe528d95f51d8f3668b0f7d6d8af974.tar.gz
rails-bd2542b74fe528d95f51d8f3668b0f7d6d8af974.tar.bz2
rails-bd2542b74fe528d95f51d8f3668b0f7d6d8af974.zip
Merge pull request #30744 from eileencodes/early-hints
Implement H2 Early Hints for Rails
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/commands/server_test.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/railties/test/commands/server_test.rb b/railties/test/commands/server_test.rb
index 556c2289e7..a6201e4f04 100644
--- a/railties/test/commands/server_test.rb
+++ b/railties/test/commands/server_test.rb
@@ -81,6 +81,18 @@ class Rails::ServerTest < ActiveSupport::TestCase
assert_equal false, options[:caching]
end
+ def test_early_hints_with_option
+ args = ["--early-hints"]
+ options = parse_arguments(args)
+ assert_equal true, options[:early_hints]
+ end
+
+ def test_early_hints_is_nil_by_default
+ args = []
+ options = parse_arguments(args)
+ assert_nil options[:early_hints]
+ end
+
def test_log_stdout
with_rack_env nil do
with_rails_env nil do