diff options
Diffstat (limited to 'spec/unpack_spec.lua')
-rw-r--r-- | spec/unpack_spec.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/unpack_spec.lua b/spec/unpack_spec.lua index 489e01e6..9b1e2b9a 100644 --- a/spec/unpack_spec.lua +++ b/spec/unpack_spec.lua | |||
@@ -11,7 +11,7 @@ local extra_rocks = { | |||
11 | } | 11 | } |
12 | 12 | ||
13 | describe("luarocks unpack #integration", function() | 13 | describe("luarocks unpack #integration", function() |
14 | 14 | ||
15 | before_each(function() | 15 | before_each(function() |
16 | test_env.setup_specs(extra_rocks) | 16 | test_env.setup_specs(extra_rocks) |
17 | end) | 17 | end) |
@@ -20,11 +20,11 @@ describe("luarocks unpack #integration", function() | |||
20 | it("with no flags/arguments", function() | 20 | it("with no flags/arguments", function() |
21 | assert.is_false(run.luarocks_bool("unpack")) | 21 | assert.is_false(run.luarocks_bool("unpack")) |
22 | end) | 22 | end) |
23 | 23 | ||
24 | it("with invalid rockspec", function() | 24 | it("with invalid rockspec", function() |
25 | assert.is_false(run.luarocks_bool("unpack invalid.rockspec")) | 25 | assert.is_false(run.luarocks_bool("unpack invalid.rockspec")) |
26 | end) | 26 | end) |
27 | 27 | ||
28 | it("with invalid patch", function() | 28 | it("with invalid patch", function() |
29 | assert.is_false(run.luarocks_bool("unpack " .. testing_paths.fixtures_dir .. "/invalid_patch-0.1-1.rockspec")) | 29 | assert.is_false(run.luarocks_bool("unpack " .. testing_paths.fixtures_dir .. "/invalid_patch-0.1-1.rockspec")) |
30 | end) | 30 | end) |
@@ -35,14 +35,14 @@ describe("luarocks unpack #integration", function() | |||
35 | assert.is_true(run.luarocks_bool("unpack cprint")) | 35 | assert.is_true(run.luarocks_bool("unpack cprint")) |
36 | test_env.remove_dir("cprint-0.1-2") | 36 | test_env.remove_dir("cprint-0.1-2") |
37 | end) | 37 | end) |
38 | 38 | ||
39 | it("src", function() | 39 | it("src", function() |
40 | assert.is_true(run.luarocks_bool("download --source cprint")) | 40 | assert.is_true(run.luarocks_bool("download --source cprint")) |
41 | assert.is_true(run.luarocks_bool("unpack cprint-0.1-2.src.rock")) | 41 | assert.is_true(run.luarocks_bool("unpack cprint-0.1-2.src.rock")) |
42 | os.remove("cprint-0.1-2.src.rock") | 42 | os.remove("cprint-0.1-2.src.rock") |
43 | test_env.remove_dir("cprint-0.1-2") | 43 | test_env.remove_dir("cprint-0.1-2") |
44 | end) | 44 | end) |
45 | 45 | ||
46 | it("src", function() | 46 | it("src", function() |
47 | assert.is_true(run.luarocks_bool("download --rockspec cprint")) | 47 | assert.is_true(run.luarocks_bool("download --rockspec cprint")) |
48 | assert.is_true(run.luarocks_bool("unpack cprint-0.1-2.rockspec")) | 48 | assert.is_true(run.luarocks_bool("unpack cprint-0.1-2.rockspec")) |