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/write_rockspec_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/write_rockspec_spec.lua')
-rw-r--r-- | spec/write_rockspec_spec.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/write_rockspec_spec.lua b/spec/write_rockspec_spec.lua index d6e32f15..85e345d5 100644 --- a/spec/write_rockspec_spec.lua +++ b/spec/write_rockspec_spec.lua | |||
@@ -1,14 +1,13 @@ | |||
1 | local test_env = require("test/test_environment") | 1 | local test_env = require("test/test_environment") |
2 | local lfs = require("lfs") | 2 | local lfs = require("lfs") |
3 | local run = test_env.run | ||
3 | 4 | ||
4 | test_env.unload_luarocks() | 5 | test_env.unload_luarocks() |
5 | local write_rockspec = require("luarocks.write_rockspec") | ||
6 | 6 | ||
7 | expose("LuaRocks write_rockspec tests #blackbox #b_write_rockspec", function() | 7 | describe("LuaRocks write_rockspec tests #blackbox #b_write_rockspec", function() |
8 | 8 | ||
9 | before_each(function() | 9 | before_each(function() |
10 | test_env.setup_specs(extra_rocks) | 10 | test_env.setup_specs() |
11 | run = test_env.run | ||
12 | end) | 11 | end) |
13 | 12 | ||
14 | describe("LuaRocks write_rockspec basic tests", function() | 13 | describe("LuaRocks write_rockspec basic tests", function() |
@@ -71,4 +70,4 @@ expose("LuaRocks write_rockspec tests #blackbox #b_write_rockspec", function() | |||
71 | assert.is_true(os.remove("luafcgi-scm-1.rockspec")) | 70 | assert.is_true(os.remove("luafcgi-scm-1.rockspec")) |
72 | end) | 71 | end) |
73 | end) | 72 | end) |
74 | end) \ No newline at end of file | 73 | end) |