diff options
| author | Peter Melnichenko <mpeterval@gmail.com> | 2016-07-08 14:30:00 +0300 |
|---|---|---|
| committer | Peter Melnichenko <mpeterval@gmail.com> | 2016-07-08 14:43:19 +0300 |
| commit | 8867f3324d97584ed24f3a1082144e9b1375d663 (patch) | |
| tree | 6d2ac6859128b94e02c7e9fb247cc505ab62d6c4 /spec/write_rockspec_spec.lua | |
| parent | 20a1baba59e7555b3140e0c2226948447fe8e62a (diff) | |
| download | luarocks-8867f3324d97584ed24f3a1082144e9b1375d663.tar.gz luarocks-8867f3324d97584ed24f3a1082144e9b1375d663.tar.bz2 luarocks-8867f3324d97584ed24f3a1082144e9b1375d663.zip | |
Make env vars, paths and run commands available on test env load
Diffstat (limited to 'spec/write_rockspec_spec.lua')
| -rw-r--r-- | spec/write_rockspec_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/write_rockspec_spec.lua b/spec/write_rockspec_spec.lua index 4c29f204..cf0a642e 100644 --- a/spec/write_rockspec_spec.lua +++ b/spec/write_rockspec_spec.lua | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | local test_env = require("test/test_environment") | 1 | local test_env = require("test/test_environment") |
| 2 | local lfs = require("lfs") | 2 | local lfs = require("lfs") |
| 3 | local run = test_env.run | ||
| 3 | 4 | ||
| 4 | test_env.unload_luarocks() | 5 | test_env.unload_luarocks() |
| 5 | local write_rockspec = require("luarocks.write_rockspec") | 6 | local write_rockspec = require("luarocks.write_rockspec") |
| @@ -8,7 +9,6 @@ describe("LuaRocks write_rockspec tests #blackbox #b_write_rockspec", function() | |||
| 8 | 9 | ||
| 9 | before_each(function() | 10 | before_each(function() |
| 10 | test_env.setup_specs(extra_rocks) | 11 | test_env.setup_specs(extra_rocks) |
| 11 | run = test_env.run | ||
| 12 | end) | 12 | end) |
| 13 | 13 | ||
| 14 | describe("LuaRocks write_rockspec basic tests", function() | 14 | describe("LuaRocks write_rockspec basic tests", function() |
| @@ -71,4 +71,4 @@ describe("LuaRocks write_rockspec tests #blackbox #b_write_rockspec", function() | |||
| 71 | assert.is_true(os.remove("luafcgi-scm-1.rockspec")) | 71 | assert.is_true(os.remove("luafcgi-scm-1.rockspec")) |
| 72 | end) | 72 | end) |
| 73 | end) | 73 | end) |
| 74 | end) \ No newline at end of file | 74 | end) |
