aboutsummaryrefslogtreecommitdiff
path: root/spec/write_rockspec_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/write_rockspec_spec.lua')
-rw-r--r--spec/write_rockspec_spec.lua26
1 files changed, 13 insertions, 13 deletions
diff --git a/spec/write_rockspec_spec.lua b/spec/write_rockspec_spec.lua
index 0c860939..9ee86ada 100644
--- a/spec/write_rockspec_spec.lua
+++ b/spec/write_rockspec_spec.lua
@@ -1,4 +1,4 @@
1local test_env = require("test/test_environment") 1local test_env = require("spec.util.test_env")
2local lfs = require("lfs") 2local lfs = require("lfs")
3local run = test_env.run 3local run = test_env.run
4 4
@@ -27,28 +27,28 @@ describe("LuaRocks write_rockspec tests #blackbox #b_write_rockspec", function()
27 27
28 describe("LuaRocks write_rockspec more complex tests", function() 28 describe("LuaRocks write_rockspec more complex tests", function()
29 it("LuaRocks write_rockspec git luarocks", function() 29 it("LuaRocks write_rockspec git luarocks", function()
30 assert.is_true(run.luarocks_bool("write_rockspec git://github.com/keplerproject/luarocks")) 30 assert.is_true(run.luarocks_bool("write_rockspec git://github.com/luarocks/testrock"))
31 assert.is.truthy(lfs.attributes("luarocks-dev-1.rockspec")) 31 assert.is.truthy(lfs.attributes("testrock-dev-1.rockspec"))
32 assert.is_true(os.remove("luarocks-dev-1.rockspec")) 32 assert.is_true(os.remove("testrock-dev-1.rockspec"))
33 end) 33 end)
34 34
35 it("LuaRocks write_rockspec git luarocks --tag=v2.3.0", function() 35 it("LuaRocks write_rockspec git luarocks --tag=v2.3.0", function()
36 assert.is_true(run.luarocks_bool("write_rockspec git://github.com/keplerproject/luarocks --tag=v2.3.0")) 36 assert.is_true(run.luarocks_bool("write_rockspec git://github.com/luarocks/testrock --tag=v2.3.0"))
37 assert.is.truthy(lfs.attributes("luarocks-2.3.0-1.rockspec")) 37 assert.is.truthy(lfs.attributes("testrock-2.3.0-1.rockspec"))
38 assert.is_true(os.remove("luarocks-2.3.0-1.rockspec")) 38 assert.is_true(os.remove("testrock-2.3.0-1.rockspec"))
39 end) 39 end)
40 40
41 it("LuaRocks write_rockspec git luarocks with format flag", function() 41 it("LuaRocks write_rockspec git luarocks with format flag", function()
42 assert.is_true(run.luarocks_bool("write_rockspec git://github.com/luarocks/luarocks --rockspec-format=1.1 --lua-version=5.1,5.2")) 42 assert.is_true(run.luarocks_bool("write_rockspec git://github.com/luarocks/testrock --rockspec-format=1.1 --lua-version=5.1,5.2"))
43 assert.is.truthy(lfs.attributes("luarocks-dev-1.rockspec")) 43 assert.is.truthy(lfs.attributes("testrock-dev-1.rockspec"))
44 assert.is_true(os.remove("luarocks-dev-1.rockspec")) 44 assert.is_true(os.remove("testrock-dev-1.rockspec"))
45 end) 45 end)
46 46
47 it("LuaRocks write_rockspec git luarocks with full flags", function() 47 it("LuaRocks write_rockspec git luarocks with full flags", function()
48 assert.is_true(run.luarocks_bool("write_rockspec git://github.com/luarocks/luarocks --lua-version=5.1,5.2 --license=\"MIT/X11\" " 48 assert.is_true(run.luarocks_bool("write_rockspec git://github.com/luarocks/testrock --lua-version=5.1,5.2 --license=\"MIT/X11\" "
49 .. " --homepage=\"http://www.luarocks.org\" --summary=\"A package manager for Lua modules\" ")) 49 .. " --homepage=\"http://www.luarocks.org\" --summary=\"A package manager for Lua modules\" "))
50 assert.is.truthy(lfs.attributes("luarocks-dev-1.rockspec")) 50 assert.is.truthy(lfs.attributes("testrock-dev-1.rockspec"))
51 assert.is_true(os.remove("luarocks-dev-1.rockspec")) 51 assert.is_true(os.remove("testrock-dev-1.rockspec"))
52 end) 52 end)
53 53
54 it("LuaRocks write_rockspec rockspec via http", function() 54 it("LuaRocks write_rockspec rockspec via http", function()