X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/c2943343107ebccca374d2ae6d7c99dd0589faa5..784f6ccc15461a942888c3fe331f5e0dd3f0a9a0:/spec/indent/cython_spec.rb?ds=inline diff --git a/spec/indent/cython_spec.rb b/spec/indent/cython_spec.rb index 6a85790..03dcbb2 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 @@ -20,14 +23,14 @@ describe "vim for cython" do describe "when using a cdef function definition" do it "indents shiftwidth spaces" do vim.feedkeys 'icdef long_function_name(\arg' - indent.should == shiftwidth * 2 + indent.should == shiftwidth end end describe "when using a cpdef function definition" do it "indents shiftwidth spaces" do vim.feedkeys 'icpdef long_function_name(\arg' - indent.should == shiftwidth * 2 + indent.should == shiftwidth end end end