diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2019-03-21 18:47:44 -0400 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2019-04-01 16:26:30 -0300 |
commit | e388deecaa13b7b89da202d09d328a79bbcf40dd (patch) | |
tree | 1adcd8df720b0bb247f141342efed1f851341b52 /spec | |
parent | 5cdaa0ad83f79e7c8ecfa87e5d58f4a42d907a44 (diff) | |
download | luarocks-e388deecaa13b7b89da202d09d328a79bbcf40dd.tar.gz luarocks-e388deecaa13b7b89da202d09d328a79bbcf40dd.tar.bz2 luarocks-e388deecaa13b7b89da202d09d328a79bbcf40dd.zip |
cmd: refactor detection code and improve detection of project dir
Diffstat (limited to 'spec')
-rw-r--r-- | spec/init_spec.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/init_spec.lua b/spec/init_spec.lua index 2c8dd64c..22570df2 100644 --- a/spec/init_spec.lua +++ b/spec/init_spec.lua | |||
@@ -111,7 +111,9 @@ describe("Luarocks init test #integration", function() | |||
111 | ]], finally) | 111 | ]], finally) |
112 | write_file(tmpdir .. "/my_dependency.lua", "return {}", finally) | 112 | write_file(tmpdir .. "/my_dependency.lua", "return {}", finally) |
113 | 113 | ||
114 | assert.is_true(run.luarocks_bool("build --verbose my_dependency-1.0-1.rockspec")) | 114 | print(run.luarocks("install inspect")) |
115 | |||
116 | print(run.luarocks("build --verbose my_dependency-1.0-1.rockspec")) | ||
115 | assert.truthy(lfs.attributes(myproject .. "/lua_modules/share/lua/" .. test_env.lua_version .."/my_dependency.lua")) | 117 | assert.truthy(lfs.attributes(myproject .. "/lua_modules/share/lua/" .. test_env.lua_version .."/my_dependency.lua")) |
116 | 118 | ||
117 | os.remove(rockspec_filename) | 119 | os.remove(rockspec_filename) |