diff options
| author | Peter Melnichenko <mpeterval@gmail.com> | 2016-07-09 16:35:33 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-09 16:35:33 +0400 |
| commit | 8e55688c191827a9b2e9c499a95c888078979e8c (patch) | |
| tree | aeaf8c1886c949e8e357b59a04cebc3be3930bce /spec/list_spec.lua | |
| parent | 5af7e0d7c2dcf65e41ae8523f3771e9528be32a7 (diff) | |
| parent | a05ba7ce42ae4e42f80b5cacdd8770ae5e6cc04b (diff) | |
| download | luarocks-8e55688c191827a9b2e9c499a95c888078979e8c.tar.gz luarocks-8e55688c191827a9b2e9c499a95c888078979e8c.tar.bz2 luarocks-8e55688c191827a9b2e9c499a95c888078979e8c.zip | |
Merge pull request #583 from mpeterv/adjust-new-tests
Minor changes and fixes for new test suite
Diffstat (limited to 'spec/list_spec.lua')
| -rw-r--r-- | spec/list_spec.lua | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/spec/list_spec.lua b/spec/list_spec.lua index 545483df..1b082ab6 100644 --- a/spec/list_spec.lua +++ b/spec/list_spec.lua | |||
| @@ -1,20 +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 run = test_env.run |
| 3 | local testing_paths = test_env.testing_paths | ||
| 3 | 4 | ||
| 4 | test_env.unload_luarocks() | 5 | test_env.unload_luarocks() |
| 5 | local list = require("luarocks.list") | ||
| 6 | 6 | ||
| 7 | local extra_rocks = { | 7 | local extra_rocks = { |
| 8 | "/say-1.0-1.src.rock", | 8 | "/say-1.0-1.src.rock", |
| 9 | "/say-1.2-1.src.rock" | 9 | "/say-1.2-1.src.rock" |
| 10 | } | 10 | } |
| 11 | 11 | ||
| 12 | expose("LuaRocks list tests #blackbox #b_list", function() | 12 | describe("LuaRocks list tests #blackbox #b_list", function() |
| 13 | 13 | ||
| 14 | before_each(function() | 14 | before_each(function() |
| 15 | test_env.setup_specs(extra_rocks) | 15 | test_env.setup_specs(extra_rocks) |
| 16 | run = test_env.run | ||
| 17 | testing_paths = test_env.testing_paths | ||
| 18 | end) | 16 | end) |
| 19 | 17 | ||
| 20 | it("LuaRocks list with no flags/arguments", function() | 18 | it("LuaRocks list with no flags/arguments", function() |
