diff options
Diffstat (limited to 'spec/write_rockspec_spec.lua')
-rw-r--r-- | spec/write_rockspec_spec.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/write_rockspec_spec.lua b/spec/write_rockspec_spec.lua index e4a7fa73..0a0988d0 100644 --- a/spec/write_rockspec_spec.lua +++ b/spec/write_rockspec_spec.lua | |||
@@ -42,27 +42,27 @@ describe("LuaRocks write_rockspec tests #blackbox #b_write_rockspec", function() | |||
42 | 42 | ||
43 | it("runs", function() | 43 | it("runs", function() |
44 | finally(function() os.remove("testrock-dev-1.rockspec") end) | 44 | finally(function() os.remove("testrock-dev-1.rockspec") end) |
45 | assert.is_true(run.luarocks_bool("write_rockspec git://localhost:20000/testrock")) | 45 | assert.is_true(run.luarocks_bool("write_rockspec git://localhost/testrock")) |
46 | assert.is.truthy(lfs.attributes("testrock-dev-1.rockspec")) | 46 | assert.is.truthy(lfs.attributes("testrock-dev-1.rockspec")) |
47 | end) | 47 | end) |
48 | 48 | ||
49 | it("runs with --tag", function() | 49 | it("runs with --tag", function() |
50 | finally(function() os.remove("testrock-2.3.0-1.rockspec") end) | 50 | finally(function() os.remove("testrock-2.3.0-1.rockspec") end) |
51 | assert.is_true(run.luarocks_bool("write_rockspec git://localhost:20000/testrock --tag=v2.3.0")) | 51 | assert.is_true(run.luarocks_bool("write_rockspec git://localhost/testrock --tag=v2.3.0")) |
52 | assert.is.truthy(lfs.attributes("testrock-2.3.0-1.rockspec")) | 52 | assert.is.truthy(lfs.attributes("testrock-2.3.0-1.rockspec")) |
53 | -- TODO check contents | 53 | -- TODO check contents |
54 | end) | 54 | end) |
55 | 55 | ||
56 | it("runs with format flag", function() | 56 | it("runs with format flag", function() |
57 | finally(function() os.remove("testrock-dev-1.rockspec") end) | 57 | finally(function() os.remove("testrock-dev-1.rockspec") end) |
58 | assert.is_true(run.luarocks_bool("write_rockspec git://localhost:20000/testrock --rockspec-format=1.1 --lua-version=5.1,5.2")) | 58 | assert.is_true(run.luarocks_bool("write_rockspec git://localhost/testrock --rockspec-format=1.1 --lua-version=5.1,5.2")) |
59 | assert.is.truthy(lfs.attributes("testrock-dev-1.rockspec")) | 59 | assert.is.truthy(lfs.attributes("testrock-dev-1.rockspec")) |
60 | -- TODO check contents | 60 | -- TODO check contents |
61 | end) | 61 | end) |
62 | 62 | ||
63 | it("runs with full flags", function() | 63 | it("runs with full flags", function() |
64 | finally(function() os.remove("testrock-dev-1.rockspec") end) | 64 | finally(function() os.remove("testrock-dev-1.rockspec") end) |
65 | assert.is_true(run.luarocks_bool("write_rockspec git://localhost:20000/testrock --lua-version=5.1,5.2 --license=\"MIT/X11\" " | 65 | assert.is_true(run.luarocks_bool("write_rockspec git://localhost/testrock --lua-version=5.1,5.2 --license=\"MIT/X11\" " |
66 | .. " --homepage=\"http://www.luarocks.org\" --summary=\"A package manager for Lua modules\" ")) | 66 | .. " --homepage=\"http://www.luarocks.org\" --summary=\"A package manager for Lua modules\" ")) |
67 | assert.is.truthy(lfs.attributes("testrock-dev-1.rockspec")) | 67 | assert.is.truthy(lfs.attributes("testrock-dev-1.rockspec")) |
68 | -- TODO check contents | 68 | -- TODO check contents |
@@ -70,7 +70,7 @@ describe("LuaRocks write_rockspec tests #blackbox #b_write_rockspec", function() | |||
70 | 70 | ||
71 | it("with various flags", function() | 71 | it("with various flags", function() |
72 | finally(function() os.remove("testrock-dev-1.rockspec") end) | 72 | finally(function() os.remove("testrock-dev-1.rockspec") end) |
73 | assert.is_true(run.luarocks_bool("write_rockspec git://localhost:20000/testrock --lib=fcgi --license=\"3-clause BSD\" " .. "--lua-version=5.1,5.2")) | 73 | assert.is_true(run.luarocks_bool("write_rockspec git://localhost/testrock --lib=fcgi --license=\"3-clause BSD\" " .. "--lua-version=5.1,5.2")) |
74 | assert.is.truthy(lfs.attributes("testrock-dev-1.rockspec")) | 74 | assert.is.truthy(lfs.attributes("testrock-dev-1.rockspec")) |
75 | -- TODO check contents | 75 | -- TODO check contents |
76 | end) | 76 | end) |