diff options
Diffstat (limited to 'spec/help_spec.lua')
| -rw-r--r-- | spec/help_spec.lua | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/spec/help_spec.lua b/spec/help_spec.lua index 0f40dd38..0d41e2e9 100644 --- a/spec/help_spec.lua +++ b/spec/help_spec.lua | |||
| @@ -1,14 +1,12 @@ | |||
| 1 | local test_env = require("test/test_environment") | 1 | local test_env = require("test/test_environment") |
| 2 | local lfs = require("lfs") | 2 | local run = test_env.run |
| 3 | 3 | ||
| 4 | test_env.unload_luarocks() | 4 | test_env.unload_luarocks() |
| 5 | local help = require("luarocks.help") | ||
| 6 | 5 | ||
| 7 | expose("LuaRocks help tests #blackbox #b_help", function() | 6 | describe("LuaRocks help tests #blackbox #b_help", function() |
| 8 | 7 | ||
| 9 | before_each(function() | 8 | before_each(function() |
| 10 | test_env.setup_specs(extra_rocks) | 9 | test_env.setup_specs() |
| 11 | run = test_env.run | ||
| 12 | end) | 10 | end) |
| 13 | 11 | ||
| 14 | it("LuaRocks help with no flags/arguments", function() | 12 | it("LuaRocks help with no flags/arguments", function() |
| @@ -26,4 +24,4 @@ expose("LuaRocks help tests #blackbox #b_help", function() | |||
| 26 | it("LuaRocks-admin help with no flags/arguments", function() | 24 | it("LuaRocks-admin help with no flags/arguments", function() |
| 27 | assert.is_true(run.luarocks_admin_bool("help")) | 25 | assert.is_true(run.luarocks_admin_bool("help")) |
| 28 | end) | 26 | end) |
| 29 | end) \ No newline at end of file | 27 | end) |
