diff options
| author | Hisham <hisham@gobolinux.org> | 2016-07-11 01:15:41 -0300 |
|---|---|---|
| committer | Hisham <hisham@gobolinux.org> | 2016-07-11 01:15:41 -0300 |
| commit | 994a041b4f1348564f390f3f4d8ec040c8edb4b8 (patch) | |
| tree | 128d264d86576e0b62225056769b7097a745b822 /spec/fetch_spec.lua | |
| parent | 41eccd4ca6fe51f8174dd43744e7a4bab4daf2cb (diff) | |
| parent | 77b41dd05a870feeb519e930472133f63cf94317 (diff) | |
| download | luarocks-994a041b4f1348564f390f3f4d8ec040c8edb4b8.tar.gz luarocks-994a041b4f1348564f390f3f4d8ec040c8edb4b8.tar.bz2 luarocks-994a041b4f1348564f390f3f4d8ec040c8edb4b8.zip | |
Merge branch 'master' of https://github.com/keplerproject/luarocks
Diffstat (limited to 'spec/fetch_spec.lua')
| -rw-r--r-- | spec/fetch_spec.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/fetch_spec.lua b/spec/fetch_spec.lua new file mode 100644 index 00000000..05a709e4 --- /dev/null +++ b/spec/fetch_spec.lua | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | local test_env = require("test/test_environment") | ||
| 2 | |||
| 3 | test_env.unload_luarocks() | ||
| 4 | local fetch = require("luarocks.fetch") | ||
| 5 | |||
| 6 | describe("Luarocks fetch test #whitebox #w_fetch", function() | ||
| 7 | it("Fetch url to base dir", function() | ||
| 8 | assert.are.same("v0.3", fetch.url_to_base_dir("https://github.com/hishamhm/lua-compat-5.2/archive/v0.3.zip")) | ||
| 9 | assert.are.same("lua-compat-5.2", fetch.url_to_base_dir("https://github.com/hishamhm/lua-compat-5.2.zip")) | ||
| 10 | assert.are.same("lua-compat-5.2", fetch.url_to_base_dir("https://github.com/hishamhm/lua-compat-5.2.tar.gz")) | ||
| 11 | assert.are.same("lua-compat-5.2", fetch.url_to_base_dir("https://github.com/hishamhm/lua-compat-5.2.tar.bz2")) | ||
| 12 | assert.are.same("parser.moon", fetch.url_to_base_dir("git://github.com/Cirru/parser.moon")) | ||
| 13 | assert.are.same("v0.3", fetch.url_to_base_dir("https://github.com/hishamhm/lua-compat-5.2/archive/v0.3")) | ||
| 14 | end) | ||
| 15 | end) | ||
