summary refs log tree commit
path: root/test/spec_lint.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/spec_lint.rb')
-rw-r--r--test/spec_lint.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/spec_lint.rb b/test/spec_lint.rb
index f824113f..fb60b7ef 100644
--- a/test/spec_lint.rb
+++ b/test/spec_lint.rb
@@ -231,6 +231,13 @@ describe Rack::Lint do
                        [200, {"Foo-Bar" => "one\ntwo\nthree", "Content-Length" => "0", "Content-Type" => "text/plain" }, []]
                      }).call(env({}))
     }.should.not.raise(Rack::Lint::LintError)
+
+    # non-Hash header responses should be allowed
+    lambda {
+      Rack::Lint.new(lambda { |env|
+                       [200, [%w(Content-Type text/plain), %w(Content-Length 0)], []]
+                     }).call(env({}))
+    }.should.not.raise(TypeError)
   end
 
   should "notice content-type errors" do