diff options
| author | Peter Melnichenko <mpeterval@gmail.com> | 2016-07-08 13:50:11 +0300 |
|---|---|---|
| committer | Peter Melnichenko <mpeterval@gmail.com> | 2016-07-08 13:50:11 +0300 |
| commit | 20a1baba59e7555b3140e0c2226948447fe8e62a (patch) | |
| tree | 19c5b7b96899ffeb0f706a7f596c94b2b74e8b51 | |
| parent | 54cf8ad4d527b0585f364b3d6cbe2c9eae58c3da (diff) | |
| download | luarocks-20a1baba59e7555b3140e0c2226948447fe8e62a.tar.gz luarocks-20a1baba59e7555b3140e0c2226948447fe8e62a.tar.bz2 luarocks-20a1baba59e7555b3140e0c2226948447fe8e62a.zip | |
Tests: disable insulation and use describe() instead of expose()
| -rw-r--r-- | .busted | 3 | ||||
| -rw-r--r-- | spec/add_spec.lua | 2 | ||||
| -rw-r--r-- | spec/build_spec.lua | 2 | ||||
| -rw-r--r-- | spec/config_spec.lua | 2 | ||||
| -rw-r--r-- | spec/deps_spec.lua | 2 | ||||
| -rw-r--r-- | spec/doc_spec.lua | 2 | ||||
| -rw-r--r-- | spec/download_spec.lua | 2 | ||||
| -rw-r--r-- | spec/help_spec.lua | 2 | ||||
| -rw-r--r-- | spec/install_spec.lua | 2 | ||||
| -rw-r--r-- | spec/lint_spec.lua | 2 | ||||
| -rw-r--r-- | spec/list_spec.lua | 2 | ||||
| -rw-r--r-- | spec/make_manifest_spec.lua | 2 | ||||
| -rw-r--r-- | spec/make_spec.lua | 2 | ||||
| -rw-r--r-- | spec/new_version_spec.lua | 2 | ||||
| -rw-r--r-- | spec/pack_spec.lua | 2 | ||||
| -rw-r--r-- | spec/path_spec.lua | 2 | ||||
| -rw-r--r-- | spec/purge_spec.lua | 2 | ||||
| -rw-r--r-- | spec/refresh_cache_spec.lua | 2 | ||||
| -rw-r--r-- | spec/remove_spec.lua | 2 | ||||
| -rw-r--r-- | spec/search_spec.lua | 2 | ||||
| -rw-r--r-- | spec/show_spec.lua | 2 | ||||
| -rw-r--r-- | spec/unpack_spec.lua | 2 | ||||
| -rw-r--r-- | spec/upload_spec.lua | 2 | ||||
| -rw-r--r-- | spec/util_spec.lua | 2 | ||||
| -rw-r--r-- | spec/write_rockspec_spec.lua | 2 |
25 files changed, 26 insertions, 25 deletions
| @@ -1,5 +1,6 @@ | |||
| 1 | return { | 1 | return { |
| 2 | default = { | 2 | default = { |
| 3 | helper = "test/test_environment" | 3 | helper = "test/test_environment", |
| 4 | ["auto-insulate"] = false | ||
| 4 | } | 5 | } |
| 5 | } | 6 | } |
diff --git a/spec/add_spec.lua b/spec/add_spec.lua index 5d020859..930c221d 100644 --- a/spec/add_spec.lua +++ b/spec/add_spec.lua | |||
| @@ -7,7 +7,7 @@ local extra_rocks = { | |||
| 7 | "/luasocket-3.0rc1-1.rockspec" | 7 | "/luasocket-3.0rc1-1.rockspec" |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | expose("LuaRocks add tests #blackbox #b_add", function() | 10 | describe("LuaRocks add tests #blackbox #b_add", function() |
| 11 | 11 | ||
| 12 | before_each(function() | 12 | before_each(function() |
| 13 | test_env.setup_specs(extra_rocks) | 13 | test_env.setup_specs(extra_rocks) |
diff --git a/spec/build_spec.lua b/spec/build_spec.lua index ee88cce4..7248e8f0 100644 --- a/spec/build_spec.lua +++ b/spec/build_spec.lua | |||
| @@ -25,7 +25,7 @@ local extra_rocks = { | |||
| 25 | "/validate-args-1.5.4-1.rockspec" | 25 | "/validate-args-1.5.4-1.rockspec" |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | expose("LuaRocks build tests #blackbox #b_build", function() | 28 | describe("LuaRocks build tests #blackbox #b_build", function() |
| 29 | 29 | ||
| 30 | before_each(function() | 30 | before_each(function() |
| 31 | test_env.setup_specs(extra_rocks) | 31 | test_env.setup_specs(extra_rocks) |
diff --git a/spec/config_spec.lua b/spec/config_spec.lua index a7842811..df2480ac 100644 --- a/spec/config_spec.lua +++ b/spec/config_spec.lua | |||
| @@ -3,7 +3,7 @@ local lfs = require("lfs") | |||
| 3 | 3 | ||
| 4 | test_env.unload_luarocks() | 4 | test_env.unload_luarocks() |
| 5 | 5 | ||
| 6 | expose("LuaRocks config tests #blackbox #b_config", function() | 6 | describe("LuaRocks config tests #blackbox #b_config", function() |
| 7 | 7 | ||
| 8 | before_each(function() | 8 | before_each(function() |
| 9 | test_env.setup_specs(extra_rocks) | 9 | test_env.setup_specs(extra_rocks) |
diff --git a/spec/deps_spec.lua b/spec/deps_spec.lua index 3a0cda74..9bb4709d 100644 --- a/spec/deps_spec.lua +++ b/spec/deps_spec.lua | |||
| @@ -11,7 +11,7 @@ local extra_rocks = { | |||
| 11 | "/lpeg-0.12-1.src.rock" | 11 | "/lpeg-0.12-1.src.rock" |
| 12 | } | 12 | } |
| 13 | 13 | ||
| 14 | expose("LuaRocks deps tests #blackbox #b_deps", function() | 14 | describe("LuaRocks deps tests #blackbox #b_deps", function() |
| 15 | 15 | ||
| 16 | before_each(function() | 16 | before_each(function() |
| 17 | test_env.setup_specs(extra_rocks) | 17 | test_env.setup_specs(extra_rocks) |
diff --git a/spec/doc_spec.lua b/spec/doc_spec.lua index d0d6ff1e..e4e7f5f2 100644 --- a/spec/doc_spec.lua +++ b/spec/doc_spec.lua | |||
| @@ -6,7 +6,7 @@ local extra_rocks = { | |||
| 6 | "/luarepl-0.4-1.src.rock" | 6 | "/luarepl-0.4-1.src.rock" |
| 7 | } | 7 | } |
| 8 | 8 | ||
| 9 | expose("LuaRocks doc tests #blackbox #b_doc", function() | 9 | describe("LuaRocks doc tests #blackbox #b_doc", function() |
| 10 | 10 | ||
| 11 | before_each(function() | 11 | before_each(function() |
| 12 | test_env.setup_specs(extra_rocks) | 12 | test_env.setup_specs(extra_rocks) |
diff --git a/spec/download_spec.lua b/spec/download_spec.lua index d1216d33..2485960d 100644 --- a/spec/download_spec.lua +++ b/spec/download_spec.lua | |||
| @@ -7,7 +7,7 @@ local extra_rocks = { | |||
| 7 | "/validate-args-1.5.4-1.rockspec" | 7 | "/validate-args-1.5.4-1.rockspec" |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | expose("LuaRocks download tests #blackbox #b_download", function() | 10 | describe("LuaRocks download tests #blackbox #b_download", function() |
| 11 | 11 | ||
| 12 | before_each(function() | 12 | before_each(function() |
| 13 | test_env.setup_specs(extra_rocks) | 13 | test_env.setup_specs(extra_rocks) |
diff --git a/spec/help_spec.lua b/spec/help_spec.lua index 08f6f1f1..376b6ceb 100644 --- a/spec/help_spec.lua +++ b/spec/help_spec.lua | |||
| @@ -2,7 +2,7 @@ local test_env = require("test/test_environment") | |||
| 2 | 2 | ||
| 3 | test_env.unload_luarocks() | 3 | test_env.unload_luarocks() |
| 4 | 4 | ||
| 5 | expose("LuaRocks help tests #blackbox #b_help", function() | 5 | describe("LuaRocks help tests #blackbox #b_help", function() |
| 6 | 6 | ||
| 7 | before_each(function() | 7 | before_each(function() |
| 8 | test_env.setup_specs(extra_rocks) | 8 | test_env.setup_specs(extra_rocks) |
diff --git a/spec/install_spec.lua b/spec/install_spec.lua index a598f324..f8869791 100644 --- a/spec/install_spec.lua +++ b/spec/install_spec.lua | |||
| @@ -18,7 +18,7 @@ local extra_rocks = { | |||
| 18 | "/wsapi-1.6-1.src.rock" | 18 | "/wsapi-1.6-1.src.rock" |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | expose("LuaRocks install tests #blackbox #b_install", function() | 21 | describe("LuaRocks install tests #blackbox #b_install", function() |
| 22 | 22 | ||
| 23 | before_each(function() | 23 | before_each(function() |
| 24 | test_env.setup_specs(extra_rocks) | 24 | test_env.setup_specs(extra_rocks) |
diff --git a/spec/lint_spec.lua b/spec/lint_spec.lua index 58c87c4e..ce753618 100644 --- a/spec/lint_spec.lua +++ b/spec/lint_spec.lua | |||
| @@ -6,7 +6,7 @@ local extra_rocks = { | |||
| 6 | "/validate-args-1.5.4-1.rockspec" | 6 | "/validate-args-1.5.4-1.rockspec" |
| 7 | } | 7 | } |
| 8 | 8 | ||
| 9 | expose("LuaRocks lint tests #blackbox #b_lint", function() | 9 | describe("LuaRocks lint tests #blackbox #b_lint", function() |
| 10 | 10 | ||
| 11 | before_each(function() | 11 | before_each(function() |
| 12 | test_env.setup_specs(extra_rocks) | 12 | test_env.setup_specs(extra_rocks) |
diff --git a/spec/list_spec.lua b/spec/list_spec.lua index edc310ca..344607e3 100644 --- a/spec/list_spec.lua +++ b/spec/list_spec.lua | |||
| @@ -7,7 +7,7 @@ local extra_rocks = { | |||
| 7 | "/say-1.2-1.src.rock" | 7 | "/say-1.2-1.src.rock" |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | expose("LuaRocks list tests #blackbox #b_list", function() | 10 | describe("LuaRocks list tests #blackbox #b_list", function() |
| 11 | 11 | ||
| 12 | before_each(function() | 12 | before_each(function() |
| 13 | test_env.setup_specs(extra_rocks) | 13 | test_env.setup_specs(extra_rocks) |
diff --git a/spec/make_manifest_spec.lua b/spec/make_manifest_spec.lua index a5b19eff..c6b0753c 100644 --- a/spec/make_manifest_spec.lua +++ b/spec/make_manifest_spec.lua | |||
| @@ -2,7 +2,7 @@ local test_env = require("test/test_environment") | |||
| 2 | 2 | ||
| 3 | test_env.unload_luarocks() | 3 | test_env.unload_luarocks() |
| 4 | 4 | ||
| 5 | expose("LuaRocks make_manifest tests #blackbox #b_make_manifest", function() | 5 | describe("LuaRocks make_manifest tests #blackbox #b_make_manifest", function() |
| 6 | 6 | ||
| 7 | before_each(function() | 7 | before_each(function() |
| 8 | test_env.setup_specs(extra_rocks) | 8 | test_env.setup_specs(extra_rocks) |
diff --git a/spec/make_spec.lua b/spec/make_spec.lua index b0177fc5..5ae23fd5 100644 --- a/spec/make_spec.lua +++ b/spec/make_spec.lua | |||
| @@ -11,7 +11,7 @@ local extra_rocks = { | |||
| 11 | "/lxsh-0.8.6-2.rockspec" | 11 | "/lxsh-0.8.6-2.rockspec" |
| 12 | } | 12 | } |
| 13 | 13 | ||
| 14 | expose("LuaRocks make tests #blackbox #b_make", function() | 14 | describe("LuaRocks make tests #blackbox #b_make", function() |
| 15 | 15 | ||
| 16 | before_each(function() | 16 | before_each(function() |
| 17 | test_env.setup_specs(extra_rocks) | 17 | test_env.setup_specs(extra_rocks) |
diff --git a/spec/new_version_spec.lua b/spec/new_version_spec.lua index 685d31b4..140c9906 100644 --- a/spec/new_version_spec.lua +++ b/spec/new_version_spec.lua | |||
| @@ -7,7 +7,7 @@ local extra_rocks = { | |||
| 7 | "/abelhas-1.0-1.rockspec" | 7 | "/abelhas-1.0-1.rockspec" |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | expose("LuaRocks new_version tests #blackbox #b_new_version", function() | 10 | describe("LuaRocks new_version tests #blackbox #b_new_version", function() |
| 11 | 11 | ||
| 12 | before_each(function() | 12 | before_each(function() |
| 13 | test_env.setup_specs(extra_rocks) | 13 | test_env.setup_specs(extra_rocks) |
diff --git a/spec/pack_spec.lua b/spec/pack_spec.lua index 39d8bc5c..1671152c 100644 --- a/spec/pack_spec.lua +++ b/spec/pack_spec.lua | |||
| @@ -9,7 +9,7 @@ local extra_rocks = { | |||
| 9 | "/luasocket-3.0rc1-1.rockspec" | 9 | "/luasocket-3.0rc1-1.rockspec" |
| 10 | } | 10 | } |
| 11 | 11 | ||
| 12 | expose("LuaRocks pack tests #blackbox #b_pack", function() | 12 | describe("LuaRocks pack tests #blackbox #b_pack", 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) |
diff --git a/spec/path_spec.lua b/spec/path_spec.lua index cffc186b..d201f337 100644 --- a/spec/path_spec.lua +++ b/spec/path_spec.lua | |||
| @@ -2,7 +2,7 @@ local test_env = require("test/test_environment") | |||
| 2 | 2 | ||
| 3 | test_env.unload_luarocks() | 3 | test_env.unload_luarocks() |
| 4 | 4 | ||
| 5 | expose("LuaRocks path tests #blackbox #b_path", function() | 5 | describe("LuaRocks path tests #blackbox #b_path", function() |
| 6 | before_each(function() | 6 | before_each(function() |
| 7 | test_env.setup_specs(extra_rocks) | 7 | test_env.setup_specs(extra_rocks) |
| 8 | run = test_env.run | 8 | run = test_env.run |
diff --git a/spec/purge_spec.lua b/spec/purge_spec.lua index f5515cb5..30ce15e2 100644 --- a/spec/purge_spec.lua +++ b/spec/purge_spec.lua | |||
| @@ -2,7 +2,7 @@ local test_env = require("test/test_environment") | |||
| 2 | 2 | ||
| 3 | test_env.unload_luarocks() | 3 | test_env.unload_luarocks() |
| 4 | 4 | ||
| 5 | expose("LuaRocks purge tests #blackbox #b_purge", function() | 5 | describe("LuaRocks purge tests #blackbox #b_purge", function() |
| 6 | before_each(function() | 6 | before_each(function() |
| 7 | test_env.setup_specs(extra_rocks) | 7 | test_env.setup_specs(extra_rocks) |
| 8 | testing_paths = test_env.testing_paths | 8 | testing_paths = test_env.testing_paths |
diff --git a/spec/refresh_cache_spec.lua b/spec/refresh_cache_spec.lua index ef8c3a12..764cbcb5 100644 --- a/spec/refresh_cache_spec.lua +++ b/spec/refresh_cache_spec.lua | |||
| @@ -2,7 +2,7 @@ local test_env = require("test/test_environment") | |||
| 2 | 2 | ||
| 3 | test_env.unload_luarocks() | 3 | test_env.unload_luarocks() |
| 4 | 4 | ||
| 5 | expose("LuaRocks refresh_cache tests #blackbox #b_refresh_cache", function() | 5 | describe("LuaRocks refresh_cache tests #blackbox #b_refresh_cache", function() |
| 6 | 6 | ||
| 7 | before_each(function() | 7 | before_each(function() |
| 8 | test_env.setup_specs(extra_rocks) | 8 | test_env.setup_specs(extra_rocks) |
diff --git a/spec/remove_spec.lua b/spec/remove_spec.lua index 1b3cda7e..4129e755 100644 --- a/spec/remove_spec.lua +++ b/spec/remove_spec.lua | |||
| @@ -10,7 +10,7 @@ local extra_rocks = { | |||
| 10 | "/luasocket-3.0rc1-1.rockspec" | 10 | "/luasocket-3.0rc1-1.rockspec" |
| 11 | } | 11 | } |
| 12 | 12 | ||
| 13 | expose("LuaRocks remove tests #blackbox #b_remove", function() | 13 | describe("LuaRocks remove tests #blackbox #b_remove", function() |
| 14 | 14 | ||
| 15 | before_each(function() | 15 | before_each(function() |
| 16 | test_env.setup_specs(extra_rocks) | 16 | test_env.setup_specs(extra_rocks) |
diff --git a/spec/search_spec.lua b/spec/search_spec.lua index 8e84931b..93e85928 100644 --- a/spec/search_spec.lua +++ b/spec/search_spec.lua | |||
| @@ -6,7 +6,7 @@ local extra_rocks = { | |||
| 6 | "/lzlib-0.4.1.53-1.src.rock" | 6 | "/lzlib-0.4.1.53-1.src.rock" |
| 7 | } | 7 | } |
| 8 | 8 | ||
| 9 | expose("LuaRocks search tests #blackbox #b_search", function() | 9 | describe("LuaRocks search tests #blackbox #b_search", function() |
| 10 | 10 | ||
| 11 | before_each(function() | 11 | before_each(function() |
| 12 | test_env.setup_specs(extra_rocks) | 12 | test_env.setup_specs(extra_rocks) |
diff --git a/spec/show_spec.lua b/spec/show_spec.lua index c2f70c92..a58eea52 100644 --- a/spec/show_spec.lua +++ b/spec/show_spec.lua | |||
| @@ -2,7 +2,7 @@ local test_env = require("test/test_environment") | |||
| 2 | 2 | ||
| 3 | test_env.unload_luarocks() | 3 | test_env.unload_luarocks() |
| 4 | 4 | ||
| 5 | expose("LuaRocks show tests #blackbox #b_show", function() | 5 | describe("LuaRocks show tests #blackbox #b_show", function() |
| 6 | 6 | ||
| 7 | before_each(function() | 7 | before_each(function() |
| 8 | test_env.setup_specs(extra_rocks) | 8 | test_env.setup_specs(extra_rocks) |
diff --git a/spec/unpack_spec.lua b/spec/unpack_spec.lua index 3930a583..1e9df811 100644 --- a/spec/unpack_spec.lua +++ b/spec/unpack_spec.lua | |||
| @@ -7,7 +7,7 @@ local extra_rocks = { | |||
| 7 | "/cprint-0.1-2.rockspec" | 7 | "/cprint-0.1-2.rockspec" |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | expose("LuaRocks unpack tests #blackbox #b_unpack", function() | 10 | describe("LuaRocks unpack tests #blackbox #b_unpack", function() |
| 11 | 11 | ||
| 12 | before_each(function() | 12 | before_each(function() |
| 13 | test_env.setup_specs(extra_rocks) | 13 | test_env.setup_specs(extra_rocks) |
diff --git a/spec/upload_spec.lua b/spec/upload_spec.lua index f0125966..ce998987 100644 --- a/spec/upload_spec.lua +++ b/spec/upload_spec.lua | |||
| @@ -6,7 +6,7 @@ local extra_rocks = { | |||
| 6 | "/lua-cjson-2.1.0-1.src.rock" | 6 | "/lua-cjson-2.1.0-1.src.rock" |
| 7 | } | 7 | } |
| 8 | 8 | ||
| 9 | expose("LuaRocks upload tests #blackbox #b_upload", function() | 9 | describe("LuaRocks upload tests #blackbox #b_upload", function() |
| 10 | 10 | ||
| 11 | before_each(function() | 11 | before_each(function() |
| 12 | test_env.setup_specs(extra_rocks) | 12 | test_env.setup_specs(extra_rocks) |
diff --git a/spec/util_spec.lua b/spec/util_spec.lua index 7c22d1cb..7e0289d6 100644 --- a/spec/util_spec.lua +++ b/spec/util_spec.lua | |||
| @@ -1,7 +1,7 @@ | |||
| 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 | 3 | ||
| 4 | expose("Basic tests #blackbox #b_util", function() | 4 | describe("Basic tests #blackbox #b_util", function() |
| 5 | 5 | ||
| 6 | before_each(function() | 6 | before_each(function() |
| 7 | test_env.setup_specs(extra_rocks) | 7 | test_env.setup_specs(extra_rocks) |
diff --git a/spec/write_rockspec_spec.lua b/spec/write_rockspec_spec.lua index d6e32f15..4c29f204 100644 --- a/spec/write_rockspec_spec.lua +++ b/spec/write_rockspec_spec.lua | |||
| @@ -4,7 +4,7 @@ local lfs = require("lfs") | |||
| 4 | test_env.unload_luarocks() | 4 | test_env.unload_luarocks() |
| 5 | local write_rockspec = require("luarocks.write_rockspec") | 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(extra_rocks) |
