aboutsummaryrefslogtreecommitdiff
path: root/test/unit/message_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-03-12 10:52:13 +0100
committerGitHub <noreply@github.com>2017-03-12 10:52:13 +0100
commitc8f0f8fea6e3170db0d68d61dd84f3c3ef9ee77c (patch)
treed993945c472a610a265baa79d714c6d32f149f14 /test/unit/message_spec.lua
parentb2b15e6e137d7be2b01bf2174791f36bd12981bd (diff)
parent48e7a83447c0a1a59a110b5ca9e712f560fd9e03 (diff)
downloadrneovim-c8f0f8fea6e3170db0d68d61dd84f3c3ef9ee77c.tar.gz
rneovim-c8f0f8fea6e3170db0d68d61dd84f3c3ef9ee77c.tar.bz2
rneovim-c8f0f8fea6e3170db0d68d61dd84f3c3ef9ee77c.zip
Merge #6214 from ZyX-I/split-eval'/isolated-unittests
Run all unit tests in separate processes
Diffstat (limited to 'test/unit/message_spec.lua')
-rw-r--r--test/unit/message_spec.lua13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/unit/message_spec.lua b/test/unit/message_spec.lua
index afb572347f..7e92b5c857 100644
--- a/test/unit/message_spec.lua
+++ b/test/unit/message_spec.lua
@@ -1,4 +1,5 @@
-local helpers = require("test.unit.helpers")
+local helpers = require("test.unit.helpers")(after_each)
+local itp = helpers.gen_itp(it)
local ffi = helpers.ffi
local eq = helpers.eq
@@ -35,23 +36,23 @@ describe('trunc_string', function()
for _,t in ipairs(permutations) do
describe('populates buf '..t.desc, function()
- it('with a small string', function()
+ itp('with a small string', function()
t.func('text', 'text')
end)
- it('with a medium string', function()
+ itp('with a medium string', function()
t.func('a short text', 'a short text')
end)
- it('with a string of length == 1/2 room', function()
+ itp('with a string of length == 1/2 room', function()
t.func('a text that fits', 'a text that fits', 34)
end)
- it('with a string exactly the truncate size', function()
+ itp('with a string exactly the truncate size', function()
t.func('a text tha just fits', 'a text tha just fits')
end)
- it('with a string that must be truncated', function()
+ itp('with a string that must be truncated', function()
t.func('a text that nott fits', 'a text t...nott fits')
end)
end)