summaryrefslogtreecommitdiff
path: root/spec/parser_spec.lua
blob: 53f86a1855417ae5b8e52e10095027a1989e965d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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()
			headers:parse [[scheme "headers/1"]]
		end)
	end)

	it("is not required", function()
		assert.has_no.errors(function()
			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)