Skip to content

Commit 56f3e54

Browse files
authored
tests: insert blank lines before each test (#89)
This is required with reuse_server.
1 parent db2ce3b commit 56f3e54

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

spec/indent/indent_spec.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,17 @@
406406
end
407407

408408
shared_examples_for "multiline strings" do
409+
before(:each) {
410+
# clear buffer
411+
vim.normal 'gg"_dG'
412+
413+
# Insert two blank lines.
414+
# The first line is a corner case in this plugin that would shadow the
415+
# correct behaviour of other tests. Thus we explicitly jump to the first
416+
# line when we require so.
417+
vim.feedkeys 'i\<CR>\<CR>\<ESC>'
418+
}
419+
409420
describe "when after an '(' that is followed by an unfinished string" do
410421
before { vim.feedkeys 'itest("""' }
411422

@@ -540,6 +551,12 @@
540551
vim.command "enew"
541552
vim.command "set ft=cython"
542553
vim.command "runtime indent/python.vim"
554+
555+
# Insert two blank lines.
556+
# The first line is a corner case in this plugin that would shadow the
557+
# correct behaviour of other tests. Thus we explicitly jump to the first
558+
# line when we require so.
559+
vim.feedkeys 'i\<CR>\<CR>\<ESC>'
543560
}
544561

545562
describe "when using a cdef function definition" do

0 commit comments

Comments
 (0)