From 5bcc228eb87aa8b9ca3df5b625e0d638171b1bbc Mon Sep 17 00:00:00 2001 From: olimorris Date: Tue, 8 Mar 2022 07:55:18 +0000 Subject: [PATCH] test: move files to stubs folder --- tests/init_spec.lua | 4 ++-- tests/stubs/test.txt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 tests/stubs/test.txt diff --git a/tests/init_spec.lua b/tests/init_spec.lua index 79e20e2..f5ca4a7 100644 --- a/tests/init_spec.lua +++ b/tests/init_spec.lua @@ -11,7 +11,7 @@ describe("With default settings", function() it("saves a session", function() -- Edit a buffer - vim.cmd(":e tests/data/test.txt") + vim.cmd(":e tests/stubs/test.txt") vim.cmd(":w") -- Save the session @@ -19,7 +19,7 @@ describe("With default settings", function() -- Check that it is written to disk assert.equals(vim.g.persisting, true) - assert.equals(vim.fn.system("ls tests/data | wc -l"), "2\n") + assert.equals(vim.fn.system("ls tests/data | wc -l"), "1\n") end) it("loads a session", function() diff --git a/tests/stubs/test.txt b/tests/stubs/test.txt new file mode 100644 index 0000000..9f4b6d8 --- /dev/null +++ b/tests/stubs/test.txt @@ -0,0 +1 @@ +This is a test file