From e30eaac43b76e47ae3c079428a1b891dbac7b694 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 25 Jul 2018 01:19:51 +0200 Subject: [PATCH] Fix cython tests that successful due to Vim segfaulting and vimrunner not handling it --- spec/indent/cython_spec.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/indent/cython_spec.rb b/spec/indent/cython_spec.rb index 6a85790..933801d 100644 --- a/spec/indent/cython_spec.rb +++ b/spec/indent/cython_spec.rb @@ -4,9 +4,12 @@ describe "vim for cython" do before(:all) { vim.command "new" vim.command "set ft=cython" - # vim.command("set indentexpr?").should include "GetPythonPEPIndent(" + vim.command("set indentexpr?").should include "GetPythonPEPIndent(" } before(:each) { + # clear buffer + vim.normal 'gg"_dG' + # Insert two blank lines. # The first line is a corner case in this plugin that would shadow the # correct behaviour of other tests. Thus we explicitly jump to the first -- 2.39.2