aboutsummaryrefslogtreecommitdiff
path: root/spec/lint_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lint_spec.lua')
-rw-r--r--spec/lint_spec.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/lint_spec.lua b/spec/lint_spec.lua
index 4bc93e95..75774061 100644
--- a/spec/lint_spec.lua
+++ b/spec/lint_spec.lua
@@ -11,28 +11,28 @@ local extra_rocks = {
11 "/validate-args-1.5.4-1.rockspec" 11 "/validate-args-1.5.4-1.rockspec"
12} 12}
13 13
14describe("LuaRocks lint tests #integration", function() 14describe("luarocks lint #integration", function()
15 15
16 before_each(function() 16 before_each(function()
17 test_env.setup_specs(extra_rocks) 17 test_env.setup_specs(extra_rocks)
18 end) 18 end)
19 19
20 it("LuaRocks lint with no flags/arguments", function() 20 it("with no flags/arguments", function()
21 assert.is_false(run.luarocks_bool("lint")) 21 assert.is_false(run.luarocks_bool("lint"))
22 end) 22 end)
23 23
24 it("LuaRocks lint invalid argument", function() 24 it("invalid argument", function()
25 assert.is_false(run.luarocks_bool("lint invalid")) 25 assert.is_false(run.luarocks_bool("lint invalid"))
26 end) 26 end)
27 27
28 it("LuaRocks lint OK", function() 28 it("OK", function()
29 assert.is_true(run.luarocks_bool("download --rockspec validate-args 1.5.4-1")) 29 assert.is_true(run.luarocks_bool("download --rockspec validate-args 1.5.4-1"))
30 local output = run.luarocks("lint validate-args-1.5.4-1.rockspec") 30 local output = run.luarocks("lint validate-args-1.5.4-1.rockspec")
31 assert.are.same(output, "") 31 assert.are.same(output, "")
32 assert.is_true(os.remove("validate-args-1.5.4-1.rockspec")) 32 assert.is_true(os.remove("validate-args-1.5.4-1.rockspec"))
33 end) 33 end)
34 34
35 describe("LuaRocks lint mismatch set", function() 35 describe("mismatch set", function()
36 local tmpdir 36 local tmpdir
37 local olddir 37 local olddir
38 38
@@ -52,7 +52,7 @@ describe("LuaRocks lint tests #integration", function()
52 end 52 end
53 end) 53 end)
54 54
55 it("LuaRocks lint mismatch string", function() 55 it("mismatch string", function()
56 write_file("type_mismatch_string-1.0-1.rockspec", [[ 56 write_file("type_mismatch_string-1.0-1.rockspec", [[
57 package="type_mismatch_version" 57 package="type_mismatch_version"
58 version=1.0 58 version=1.0
@@ -60,7 +60,7 @@ describe("LuaRocks lint tests #integration", function()
60 assert.is_false(run.luarocks_bool("lint type_mismatch_string-1.0-1.rockspec")) 60 assert.is_false(run.luarocks_bool("lint type_mismatch_string-1.0-1.rockspec"))
61 end) 61 end)
62 62
63 it("LuaRocks lint mismatch version", function() 63 it("mismatch version", function()
64 write_file("type_mismatch_version-1.0-1.rockspec", [[ 64 write_file("type_mismatch_version-1.0-1.rockspec", [[
65 package="type_mismatch_version" 65 package="type_mismatch_version"
66 version="1.0" 66 version="1.0"
@@ -68,7 +68,7 @@ describe("LuaRocks lint tests #integration", function()
68 assert.is_false(run.luarocks_bool("lint type_mismatch_version-1.0-1.rockspec")) 68 assert.is_false(run.luarocks_bool("lint type_mismatch_version-1.0-1.rockspec"))
69 end) 69 end)
70 70
71 it("LuaRocks lint mismatch table", function() 71 it("mismatch table", function()
72 write_file("type_mismatch_table-1.0-1.rockspec", [[ 72 write_file("type_mismatch_table-1.0-1.rockspec", [[
73 package="type_mismatch_table" 73 package="type_mismatch_table"
74 version="1.0-1" 74 version="1.0-1"
@@ -78,7 +78,7 @@ describe("LuaRocks lint tests #integration", function()
78 assert.is_false(run.luarocks_bool("lint type_mismatch_table-1.0-1.rockspec")) 78 assert.is_false(run.luarocks_bool("lint type_mismatch_table-1.0-1.rockspec"))
79 end) 79 end)
80 80
81 it("LuaRocks lint mismatch no build table", function() 81 it("mismatch no build table", function()
82 write_file("no_build_table-1.0-1.rockspec", [[ 82 write_file("no_build_table-1.0-1.rockspec", [[
83 package = "no_build_table" 83 package = "no_build_table"
84 version = "0.1-1" 84 version = "0.1-1"