diff options
Diffstat (limited to 'spec/build_spec.lua')
-rw-r--r-- | spec/build_spec.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/build_spec.lua b/spec/build_spec.lua index 5e78aa4f..0a270ec4 100644 --- a/spec/build_spec.lua +++ b/spec/build_spec.lua | |||
@@ -5,6 +5,7 @@ local run = test_env.run | |||
5 | local testing_paths = test_env.testing_paths | 5 | local testing_paths = test_env.testing_paths |
6 | local write_file = test_env.write_file | 6 | local write_file = test_env.write_file |
7 | local git_repo = require("spec.util.git_repo") | 7 | local git_repo = require("spec.util.git_repo") |
8 | local P = test_env.P | ||
8 | 9 | ||
9 | test_env.unload_luarocks() | 10 | test_env.unload_luarocks() |
10 | local cfg = require("luarocks.core.cfg") | 11 | local cfg = require("luarocks.core.cfg") |
@@ -661,7 +662,7 @@ describe("LuaRocks build #unit", function() | |||
661 | write_file("bin/binfile", "", finally) | 662 | write_file("bin/binfile", "", finally) |
662 | 663 | ||
663 | local _, install, copy_directories = build_builtin.autodetect_modules({}, {}, {}) | 664 | local _, install, copy_directories = build_builtin.autodetect_modules({}, {}, {}) |
664 | assert.same(install, { bin = { "bin/binfile" } }) | 665 | assert.same(install, { bin = { P"bin/binfile" } }) |
665 | assert.same(copy_directories, { "doc", "docs", "samples", "tests" }) | 666 | assert.same(copy_directories, { "doc", "docs", "samples", "tests" }) |
666 | 667 | ||
667 | lfs.rmdir("doc") | 668 | lfs.rmdir("doc") |