diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2020-02-14 09:53:12 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2020-02-14 09:53:12 -0300 |
| commit | bd27d052eaf856bf24c77f556a50b7e19f11cba1 (patch) | |
| tree | 9812779fea52afea7dbbf15a21620d3c59102476 /spec/doc_spec.lua | |
| parent | ab0d7b2a266ff7f322af93915472f5d80d4be9af (diff) | |
| download | luarocks-bd27d052eaf856bf24c77f556a50b7e19f11cba1.tar.gz luarocks-bd27d052eaf856bf24c77f556a50b7e19f11cba1.tar.bz2 luarocks-bd27d052eaf856bf24c77f556a50b7e19f11cba1.zip | |
tests: shorter descriptions
Diffstat (limited to 'spec/doc_spec.lua')
| -rw-r--r-- | spec/doc_spec.lua | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/spec/doc_spec.lua b/spec/doc_spec.lua index 2c0f4bce..19cfb26a 100644 --- a/spec/doc_spec.lua +++ b/spec/doc_spec.lua | |||
| @@ -4,21 +4,21 @@ local testing_paths = test_env.testing_paths | |||
| 4 | 4 | ||
| 5 | test_env.unload_luarocks() | 5 | test_env.unload_luarocks() |
| 6 | 6 | ||
| 7 | describe("LuaRocks doc tests #integration", function() | 7 | describe("luarocks doc #integration", function() |
| 8 | before_each(function() | 8 | before_each(function() |
| 9 | test_env.setup_specs(extra_rocks) | 9 | test_env.setup_specs(extra_rocks) |
| 10 | end) | 10 | end) |
| 11 | 11 | ||
| 12 | describe("LuaRocks doc basic tests", function() | 12 | describe("basic tests", function() |
| 13 | it("LuaRocks doc with no flags/arguments", function() | 13 | it("with no flags/arguments", function() |
| 14 | assert.is_false(run.luarocks_bool("doc")) | 14 | assert.is_false(run.luarocks_bool("doc")) |
| 15 | end) | 15 | end) |
| 16 | 16 | ||
| 17 | it("LuaRocks doc with invalid argument", function() | 17 | it("with invalid argument", function() |
| 18 | assert.is_false(run.luarocks_bool("doc invalid")) | 18 | assert.is_false(run.luarocks_bool("doc invalid")) |
| 19 | end) | 19 | end) |
| 20 | 20 | ||
| 21 | it("LuaRocks doc with no homepage and no doc folder", function() | 21 | it("with no homepage and no doc folder", function() |
| 22 | test_env.run_in_tmp(function(tmpdir) | 22 | test_env.run_in_tmp(function(tmpdir) |
| 23 | test_env.write_file("test-1.0-1.rockspec", [[ | 23 | test_env.write_file("test-1.0-1.rockspec", [[ |
| 24 | package = "test" | 24 | package = "test" |
| @@ -40,7 +40,7 @@ describe("LuaRocks doc tests #integration", function() | |||
| 40 | end, finally) | 40 | end, finally) |
| 41 | end) | 41 | end) |
| 42 | 42 | ||
| 43 | it("LuaRocks doc with no doc folder but with homepage", function() | 43 | it("with no doc folder but with homepage", function() |
| 44 | test_env.run_in_tmp(function(tmpdir) | 44 | test_env.run_in_tmp(function(tmpdir) |
| 45 | test_env.write_file("test-1.0-1.rockspec", [[ | 45 | test_env.write_file("test-1.0-1.rockspec", [[ |
| 46 | package = "test" | 46 | package = "test" |
| @@ -75,8 +75,8 @@ describe("LuaRocks doc tests #integration", function() | |||
| 75 | end) | 75 | end) |
| 76 | end) | 76 | end) |
| 77 | 77 | ||
| 78 | describe("LuaRocks doc tests with flags", function() | 78 | describe("tests with flags", function() |
| 79 | it("LuaRocks doc of installed package", function() | 79 | it("of installed package", function() |
| 80 | test_env.run_in_tmp(function(tmpdir) | 80 | test_env.run_in_tmp(function(tmpdir) |
| 81 | test_env.write_file("test-1.0-1.rockspec", [[ | 81 | test_env.write_file("test-1.0-1.rockspec", [[ |
| 82 | package = "test" | 82 | package = "test" |
| @@ -101,7 +101,7 @@ describe("LuaRocks doc tests #integration", function() | |||
| 101 | end, finally) | 101 | end, finally) |
| 102 | end) | 102 | end) |
| 103 | 103 | ||
| 104 | it("LuaRocks doc with --list", function() | 104 | it("with --list", function() |
| 105 | test_env.run_in_tmp(function(tmpdir) | 105 | test_env.run_in_tmp(function(tmpdir) |
| 106 | test_env.write_file("test-1.0-1.rockspec", [[ | 106 | test_env.write_file("test-1.0-1.rockspec", [[ |
| 107 | package = "test" | 107 | package = "test" |
| @@ -128,12 +128,12 @@ describe("LuaRocks doc tests #integration", function() | |||
| 128 | end, finally) | 128 | end, finally) |
| 129 | end) | 129 | end) |
| 130 | 130 | ||
| 131 | it("LuaRocks doc with --local", function() | 131 | it("with --local", function() |
| 132 | assert.is_true(run.luarocks_bool("install --server=" .. testing_paths.fixtures_dir .. "/a_repo a_rock")) | 132 | assert.is_true(run.luarocks_bool("install --server=" .. testing_paths.fixtures_dir .. "/a_repo a_rock")) |
| 133 | assert.is_true(run.luarocks_bool("doc --server=" .. testing_paths.fixtures_dir .. "/a_repo a_rock --local")) | 133 | assert.is_true(run.luarocks_bool("doc --server=" .. testing_paths.fixtures_dir .. "/a_repo a_rock --local")) |
| 134 | end) | 134 | end) |
| 135 | 135 | ||
| 136 | it("LuaRocks doc with --porcelain", function() | 136 | it("with --porcelain", function() |
| 137 | test_env.run_in_tmp(function(tmpdir) | 137 | test_env.run_in_tmp(function(tmpdir) |
| 138 | test_env.write_file("test-1.0-1.rockspec", [[ | 138 | test_env.write_file("test-1.0-1.rockspec", [[ |
| 139 | package = "test" | 139 | package = "test" |
