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/lint_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/lint_spec.lua')
| -rw-r--r-- | spec/lint_spec.lua | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/spec/lint_spec.lua b/spec/lint_spec.lua index cba80a3e..f7496037 100644 --- a/spec/lint_spec.lua +++ b/spec/lint_spec.lua | |||
| @@ -1,19 +1,17 @@ | |||
| 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 lint = require("luarocks.lint") | ||
| 6 | 6 | ||
| 7 | local extra_rocks = { | 7 | local extra_rocks = { |
| 8 | "/validate-args-1.5.4-1.rockspec" | 8 | "/validate-args-1.5.4-1.rockspec" |
| 9 | } | 9 | } |
| 10 | 10 | ||
| 11 | expose("LuaRocks lint tests #blackbox #b_lint", function() | 11 | describe("LuaRocks lint tests #blackbox #b_lint", function() |
| 12 | 12 | ||
| 13 | before_each(function() | 13 | before_each(function() |
| 14 | test_env.setup_specs(extra_rocks) | 14 | test_env.setup_specs(extra_rocks) |
| 15 | testing_paths = test_env.testing_paths | ||
| 16 | run = test_env.run | ||
| 17 | end) | 15 | end) |
| 18 | 16 | ||
| 19 | it("LuaRocks lint with no flags/arguments", function() | 17 | it("LuaRocks lint with no flags/arguments", function() |
| @@ -48,4 +46,4 @@ expose("LuaRocks lint tests #blackbox #b_lint", function() | |||
| 48 | assert.is_false(run.luarocks_bool("lint " .. testing_paths.testing_dir .. "/testfiles/no_build_table-1.0-1.rockspec")) | 46 | assert.is_false(run.luarocks_bool("lint " .. testing_paths.testing_dir .. "/testfiles/no_build_table-1.0-1.rockspec")) |
| 49 | end) | 47 | end) |
| 50 | end) | 48 | end) |
| 51 | end) \ No newline at end of file | 49 | end) |
