summaryrefslogtreecommitdiff
path: root/spec/parser_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/parser_spec.lua')
-rw-r--r--spec/parser_spec.lua21
1 files changed, 18 insertions, 3 deletions
diff --git a/spec/parser_spec.lua b/spec/parser_spec.lua
index 78ee8b8..53f86a1 100644
--- a/spec/parser_spec.lua
+++ b/spec/parser_spec.lua
@@ -1,16 +1,31 @@
-local parse = require "headers.parser"
+local parser = require "headers.parser"
describe("Scheme", function()
+ local headers
+
+ setup(function()
+ headers = parser.new()
+ end)
+
it("version one is supported", function()
assert.has_no.errors(function()
- parse [[scheme "headers/1"]]
+ headers:parse [[scheme "headers/1"]]
end)
end)
it("is not required", function()
assert.has_no.errors(function()
- parse ""
+ headers:parse ""
end)
end)
end)
+
+
+describe("Standards (tags)", function() -- TODO: Streamline the naming convention standards/tags/aliases?
+ local headers
+
+ setup(function()
+ headers = parser.new()
+ end)
+end)