diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lint_spec.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/lint_spec.lua b/spec/lint_spec.lua index b205cc57..847c9800 100644 --- a/spec/lint_spec.lua +++ b/spec/lint_spec.lua | |||
@@ -93,5 +93,19 @@ describe("luarocks lint #integration", function() | |||
93 | ]], finally) | 93 | ]], finally) |
94 | assert.is_false(run.luarocks_bool("lint no_build_table-1.0-1.rockspec")) | 94 | assert.is_false(run.luarocks_bool("lint no_build_table-1.0-1.rockspec")) |
95 | end) | 95 | end) |
96 | |||
97 | it("no description field", function() | ||
98 | write_file("nodesc-1.0-1.rockspec", [[ | ||
99 | package = "nodesc" | ||
100 | version = "0.1-1" | ||
101 | source = { | ||
102 | url = "http://example.com/foo/tar.gz" | ||
103 | } | ||
104 | dependencies = { | ||
105 | "lua >= 5.1" | ||
106 | } | ||
107 | ]], finally) | ||
108 | assert.is_false(run.luarocks_bool("lint nodesc-1.0-1.rockspec")) | ||
109 | end) | ||
96 | end) | 110 | end) |
97 | end) | 111 | end) |