diff options
Diffstat (limited to 'spec/new_version_spec.lua')
-rw-r--r-- | spec/new_version_spec.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/new_version_spec.lua b/spec/new_version_spec.lua index 57014226..2274bce3 100644 --- a/spec/new_version_spec.lua +++ b/spec/new_version_spec.lua | |||
@@ -1,19 +1,18 @@ | |||
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 | ||
4 | local testing_paths = test_env.testing_paths | ||
3 | 5 | ||
4 | test_env.unload_luarocks() | 6 | test_env.unload_luarocks() |
5 | local new_version = require("luarocks.new_version") | ||
6 | 7 | ||
7 | local extra_rocks = { | 8 | local extra_rocks = { |
8 | "/abelhas-1.0-1.rockspec" | 9 | "/abelhas-1.0-1.rockspec" |
9 | } | 10 | } |
10 | 11 | ||
11 | expose("LuaRocks new_version tests #blackbox #b_new_version", function() | 12 | describe("LuaRocks new_version tests #blackbox #b_new_version", function() |
12 | 13 | ||
13 | before_each(function() | 14 | before_each(function() |
14 | test_env.setup_specs(extra_rocks) | 15 | test_env.setup_specs(extra_rocks) |
15 | testing_paths = test_env.testing_paths | ||
16 | run = test_env.run | ||
17 | end) | 16 | end) |
18 | 17 | ||
19 | describe("LuaRocks new_version basic tests", function() | 18 | describe("LuaRocks new_version basic tests", function() |
@@ -50,4 +49,4 @@ expose("LuaRocks new_version tests #blackbox #b_new_version", function() | |||
50 | test_env.remove_files(lfs.currentdir(), "luacov--") | 49 | test_env.remove_files(lfs.currentdir(), "luacov--") |
51 | end) | 50 | end) |
52 | end) | 51 | end) |
53 | end) \ No newline at end of file | 52 | end) |