about summary refs log tree commit homepage
path: root/test/unit/test_http_parser_xftrust.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/test_http_parser_xftrust.rb')
-rw-r--r--test/unit/test_http_parser_xftrust.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/test_http_parser_xftrust.rb b/test/unit/test_http_parser_xftrust.rb
index c396bc4..db8cfa9 100644
--- a/test/unit/test_http_parser_xftrust.rb
+++ b/test/unit/test_http_parser_xftrust.rb
@@ -5,11 +5,11 @@ include Unicorn
 
 class HttpParserXFTrustTest < Test::Unit::TestCase
   def setup
-    assert HttpParser.trust_x_forward?
+    assert HttpParser.trust_x_forwarded?
   end
 
   def test_xf_trust_false_xfp
-    HttpParser.trust_x_forward = false
+    HttpParser.trust_x_forwarded = false
     parser = HttpParser.new
     parser.buf << "GET / HTTP/1.1\r\nHost: foo:\r\n" \
                   "X-Forwarded-Proto: https\r\n\r\n"
@@ -21,7 +21,7 @@ class HttpParserXFTrustTest < Test::Unit::TestCase
   end
 
   def test_xf_trust_false_xfs
-    HttpParser.trust_x_forward = false
+    HttpParser.trust_x_forwarded = false
     parser = HttpParser.new
     parser.buf << "GET / HTTP/1.1\r\nHost: foo:\r\n" \
                   "X-Forwarded-SSL: on\r\n\r\n"
@@ -33,6 +33,6 @@ class HttpParserXFTrustTest < Test::Unit::TestCase
   end
 
   def teardown
-    HttpParser.trust_x_forward = true
+    HttpParser.trust_x_forwarded = true
   end
 end