summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/parser_spec.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/parser_spec.lua b/spec/parser_spec.lua
new file mode 100644
index 0000000..78ee8b8
--- /dev/null
+++ b/spec/parser_spec.lua
@@ -0,0 +1,16 @@
+local parse = require "headers.parser"
+
+
+describe("Scheme", function()
+ it("version one is supported", function()
+ assert.has_no.errors(function()
+ parse [[scheme "headers/1"]]
+ end)
+ end)
+
+ it("is not required", function()
+ assert.has_no.errors(function()
+ parse ""
+ end)
+ end)
+end)