diff options
Diffstat (limited to 'spec/pack_spec.lua')
-rw-r--r-- | spec/pack_spec.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/pack_spec.lua b/spec/pack_spec.lua index 0a4e0d8a..20a2b3ef 100644 --- a/spec/pack_spec.lua +++ b/spec/pack_spec.lua | |||
@@ -4,8 +4,6 @@ local run = test_env.run | |||
4 | local testing_paths = test_env.testing_paths | 4 | local testing_paths = test_env.testing_paths |
5 | local write_file = test_env.write_file | 5 | local write_file = test_env.write_file |
6 | 6 | ||
7 | test_env.unload_luarocks() | ||
8 | |||
9 | local extra_rocks = { | 7 | local extra_rocks = { |
10 | "/luassert-1.7.0-1.src.rock", | 8 | "/luassert-1.7.0-1.src.rock", |
11 | "/luasocket-${LUASOCKET}.src.rock", | 9 | "/luasocket-${LUASOCKET}.src.rock", |
@@ -64,11 +62,12 @@ describe("luarocks pack #integration", function() | |||
64 | 62 | ||
65 | describe("#mock", function() | 63 | describe("#mock", function() |
66 | 64 | ||
67 | setup(function() | 65 | lazy_setup(function() |
66 | test_env.setup_specs(extra_rocks, "mock") | ||
68 | test_env.mock_server_init() | 67 | test_env.mock_server_init() |
69 | end) | 68 | end) |
70 | 69 | ||
71 | teardown(function() | 70 | lazy_teardown(function() |
72 | test_env.mock_server_done() | 71 | test_env.mock_server_done() |
73 | end) | 72 | end) |
74 | 73 | ||