diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/fs_spec.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/fs_spec.lua b/spec/fs_spec.lua index 5d8926c4..16295869 100644 --- a/spec/fs_spec.lua +++ b/spec/fs_spec.lua | |||
@@ -894,7 +894,9 @@ describe("Luarocks fs test #unit", function() | |||
894 | it("returns false and does nothing if the source file does not exist", function() | 894 | it("returns false and does nothing if the source file does not exist", function() |
895 | srcfile = get_tmp_path() | 895 | srcfile = get_tmp_path() |
896 | dstfile = get_tmp_path() | 896 | dstfile = get_tmp_path() |
897 | assert.falsy(fs.copy(srcfile, dstfile, nil)) | 897 | local ok, err = fs.copy(srcfile, dstfile, nil) |
898 | assert.falsy(ok) | ||
899 | assert.not_match("are the same file", err) | ||
898 | assert.falsy(exists_file(dstfile)) | 900 | assert.falsy(exists_file(dstfile)) |
899 | end) | 901 | end) |
900 | 902 | ||