aboutsummaryrefslogtreecommitdiff
path: root/spec/refresh_cache_spec.lua
blob: 27a95e5c4922855c5892911045cc4e254c469afb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
local test_env = require("test/test_environment")
local lfs = require("lfs")

test_env.unload_luarocks()
local refresh_cache = require("luarocks.refresh_cache")

expose("LuaRocks refresh_cache tests #blackbox #b_refresh_cache", function()
	
   before_each(function()
      test_env.setup_specs(extra_rocks)
      run = test_env.run
   end)

   describe("LuaRocks-admin refresh cache tests #ssh", function()
      it("LuaRocks-admin refresh cache", function()
         assert.is_true(run.luarocks_admin_bool("--server=testing refresh_cache"))
      end)
   end)
end)