diff options
Diffstat (limited to 'spec/refresh_cache_spec.lua')
| -rw-r--r-- | spec/refresh_cache_spec.lua | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/refresh_cache_spec.lua b/spec/refresh_cache_spec.lua new file mode 100644 index 00000000..27a95e5c --- /dev/null +++ b/spec/refresh_cache_spec.lua | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | local test_env = require("test/test_environment") | ||
| 2 | local lfs = require("lfs") | ||
| 3 | |||
| 4 | test_env.unload_luarocks() | ||
| 5 | local refresh_cache = require("luarocks.refresh_cache") | ||
| 6 | |||
| 7 | expose("LuaRocks refresh_cache tests #blackbox #b_refresh_cache", function() | ||
| 8 | |||
| 9 | before_each(function() | ||
| 10 | test_env.setup_specs(extra_rocks) | ||
| 11 | run = test_env.run | ||
| 12 | end) | ||
| 13 | |||
| 14 | describe("LuaRocks-admin refresh cache tests #ssh", function() | ||
| 15 | it("LuaRocks-admin refresh cache", function() | ||
| 16 | assert.is_true(run.luarocks_admin_bool("--server=testing refresh_cache")) | ||
| 17 | end) | ||
| 18 | end) | ||
| 19 | end) \ No newline at end of file | ||
