diff --git a/spec/unit/filemanager_spec.lua b/spec/unit/filemanager_spec.lua index 55f728325..c995ca7cc 100644 --- a/spec/unit/filemanager_spec.lua +++ b/spec/unit/filemanager_spec.lua @@ -29,7 +29,7 @@ describe("FileManager module", function() local old_show = UIManager.show local tmp_fn = "/abc/123/test/foo.bar.baz.tmp.epub.pdf" UIManager.show = function(self, w) - assert.Equals(w.text, "File "..tmp_fn.." not found") + assert.Equals(w.text, "File not found:\n"..tmp_fn) end assert.is_nil(lfs.attributes(tmp_fn)) filemanager:deleteFile(tmp_fn) @@ -58,7 +58,7 @@ describe("FileManager module", function() assert.is_not_nil(lfs.attributes(tmp_history)) UIManager.show = function(self, w) - assert.Equals(w.text, "Deleted "..tmp_fn) + assert.Equals(w.text, "Deleted file:\n"..tmp_fn) end filemanager:deleteFile(tmp_fn) UIManager.show = old_show @@ -93,7 +93,7 @@ describe("FileManager module", function() assert.is_not_nil(lfs.attributes(tmp_history)) UIManager.show = function(self, w) - assert.Equals(w.text, "Deleted "..tmp_fn) + assert.Equals(w.text, "Deleted file:\n"..tmp_fn) end filemanager:deleteFile(tmp_fn) UIManager.show = old_show