diff options
Diffstat (limited to 'spec/pack_spec.lua')
-rw-r--r-- | spec/pack_spec.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/pack_spec.lua b/spec/pack_spec.lua index 0790c801..55071839 100644 --- a/spec/pack_spec.lua +++ b/spec/pack_spec.lua | |||
@@ -80,6 +80,12 @@ describe("luarocks pack #integration", function() | |||
80 | assert.is_truthy(lfs.attributes("a_rock-1.0-1.src.rock")) | 80 | assert.is_truthy(lfs.attributes("a_rock-1.0-1.src.rock")) |
81 | end) | 81 | end) |
82 | 82 | ||
83 | it("fails packing a rockspec into a .src.rock dir if doesn't exist", function() | ||
84 | local output = run.luarocks("pack " .. testing_paths.fixtures_dir .. "/bad_pack-0.1-1.rockspec") | ||
85 | assert.match("Directory invalid_dir not found", output) | ||
86 | assert.is_falsy(lfs.attributes("bad_pack-0.1-1.src.rock")) | ||
87 | end) | ||
88 | |||
83 | describe("namespaced dependencies", function() | 89 | describe("namespaced dependencies", function() |
84 | it("can pack rockspec with namespaced dependencies", function() | 90 | it("can pack rockspec with namespaced dependencies", function() |
85 | finally(function() | 91 | finally(function() |