diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2021-03-16 13:36:26 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2021-03-16 16:32:45 -0300 |
| commit | 8f3ce333e7a1abfc6bf0488817d9eff4a2fd443f (patch) | |
| tree | f05d1a49995341a56e602ce2a3256b89372e9d04 /spec/write_rockspec_spec.lua | |
| parent | 2b56388e76952be52d849415b1ebae74b6dc4607 (diff) | |
| download | luarocks-8f3ce333e7a1abfc6bf0488817d9eff4a2fd443f.tar.gz luarocks-8f3ce333e7a1abfc6bf0488817d9eff4a2fd443f.tar.bz2 luarocks-8f3ce333e7a1abfc6bf0488817d9eff4a2fd443f.zip | |
editorconfig: trim trailing whitespace
Diffstat (limited to 'spec/write_rockspec_spec.lua')
| -rw-r--r-- | spec/write_rockspec_spec.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/write_rockspec_spec.lua b/spec/write_rockspec_spec.lua index 3031cf10..5f9faa6e 100644 --- a/spec/write_rockspec_spec.lua +++ b/spec/write_rockspec_spec.lua | |||
| @@ -12,18 +12,18 @@ describe("luarocks write_rockspec tests #integration", function() | |||
| 12 | it("fails with invalid argument", function() | 12 | it("fails with invalid argument", function() |
| 13 | assert.is_false(run.luarocks_bool("write_rockspec invalid")) | 13 | assert.is_false(run.luarocks_bool("write_rockspec invalid")) |
| 14 | end) | 14 | end) |
| 15 | 15 | ||
| 16 | it("fails with invalid zip", function() | 16 | it("fails with invalid zip", function() |
| 17 | assert.is_false(run.luarocks_bool("write_rockspec http://example.com/invalid.zip")) | 17 | assert.is_false(run.luarocks_bool("write_rockspec http://example.com/invalid.zip")) |
| 18 | end) | 18 | end) |
| 19 | 19 | ||
| 20 | describe("from #git #unix", function() | 20 | describe("from #git #unix", function() |
| 21 | local git | 21 | local git |
| 22 | 22 | ||
| 23 | setup(function() | 23 | setup(function() |
| 24 | git = git_repo.start() | 24 | git = git_repo.start() |
| 25 | end) | 25 | end) |
| 26 | 26 | ||
| 27 | teardown(function() | 27 | teardown(function() |
| 28 | git:stop() | 28 | git:stop() |
| 29 | end) | 29 | end) |
| @@ -46,21 +46,21 @@ describe("luarocks write_rockspec tests #integration", function() | |||
| 46 | assert.is_true(run.luarocks_bool("write_rockspec git://localhost/testrock")) | 46 | assert.is_true(run.luarocks_bool("write_rockspec git://localhost/testrock")) |
| 47 | assert.is.truthy(lfs.attributes("testrock-dev-1.rockspec")) | 47 | assert.is.truthy(lfs.attributes("testrock-dev-1.rockspec")) |
| 48 | end) | 48 | end) |
| 49 | 49 | ||
| 50 | it("runs with --tag", function() | 50 | it("runs with --tag", function() |
| 51 | finally(function() os.remove("testrock-2.3.0-1.rockspec") end) | 51 | finally(function() os.remove("testrock-2.3.0-1.rockspec") end) |
| 52 | assert.is_true(run.luarocks_bool("write_rockspec git://localhost/testrock --tag=v2.3.0")) | 52 | assert.is_true(run.luarocks_bool("write_rockspec git://localhost/testrock --tag=v2.3.0")) |
| 53 | assert.is.truthy(lfs.attributes("testrock-2.3.0-1.rockspec")) | 53 | assert.is.truthy(lfs.attributes("testrock-2.3.0-1.rockspec")) |
| 54 | -- TODO check contents | 54 | -- TODO check contents |
| 55 | end) | 55 | end) |
| 56 | 56 | ||
| 57 | it("runs with format flag", function() | 57 | it("runs with format flag", function() |
| 58 | finally(function() os.remove("testrock-dev-1.rockspec") end) | 58 | finally(function() os.remove("testrock-dev-1.rockspec") end) |
| 59 | assert.is_true(run.luarocks_bool("write_rockspec git://localhost/testrock --rockspec-format=1.1 --lua-versions=5.1,5.2")) | 59 | assert.is_true(run.luarocks_bool("write_rockspec git://localhost/testrock --rockspec-format=1.1 --lua-versions=5.1,5.2")) |
| 60 | assert.is.truthy(lfs.attributes("testrock-dev-1.rockspec")) | 60 | assert.is.truthy(lfs.attributes("testrock-dev-1.rockspec")) |
| 61 | -- TODO check contents | 61 | -- TODO check contents |
| 62 | end) | 62 | end) |
| 63 | 63 | ||
| 64 | it("runs with full flags", function() | 64 | it("runs with full flags", function() |
| 65 | finally(function() os.remove("testrock-dev-1.rockspec") end) | 65 | finally(function() os.remove("testrock-dev-1.rockspec") end) |
| 66 | assert.is_true(run.luarocks_bool("write_rockspec git://localhost/testrock --lua-versions=5.1,5.2 --license=\"MIT/X11\" " | 66 | assert.is_true(run.luarocks_bool("write_rockspec git://localhost/testrock --lua-versions=5.1,5.2 --license=\"MIT/X11\" " |
