From dd7dbbdff1f52d3a032f96d3dfec6542aa9d08fc Mon Sep 17 00:00:00 2001 From: Yichao Zhou Date: Wed, 21 Jun 2017 11:58:40 -0700 Subject: [PATCH] fix test cases --- spec/indent/indent_spec.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/spec/indent/indent_spec.rb b/spec/indent/indent_spec.rb index 342b301..556f11f 100644 --- a/spec/indent/indent_spec.rb +++ b/spec/indent/indent_spec.rb @@ -45,9 +45,9 @@ it "indents by one level" do proposed_indent.should == shiftwidth vim.feedkeys 'something' - indent.should == shiftwidth + indent.should == 4 vim.normal '==' - indent.should == shiftwidth + indent.should == 4 end it "puts the closing parenthesis at the same level" do @@ -80,9 +80,9 @@ before { vim.feedkeys 'imydict = { # comment\' } it "indent by one level" do - indent.should == shiftwidth + indent.should == 4 vim.feedkeys '1: 1,\' - indent.should == shiftwidth + indent.should == 4 end it "lines up the closing parenthesis" do @@ -102,7 +102,7 @@ describe "when after multiple parens of different types" do it "indents by one level" do vim.feedkeys 'if({\' - indent.should == shiftwidth + indent.should == 4 end it "lines up with the last paren" do @@ -171,14 +171,14 @@ describe "when using a function definition" do it "indents shiftwidth spaces" do vim.feedkeys 'idef long_function_name(\arg' - indent.should == shiftwidth * 2 + indent.should == shiftwidth * 2 or indent.should == 4 end end describe "when using a class definition" do it "indents shiftwidth spaces" do vim.feedkeys 'iclass Foo(\' - indent.should == shiftwidth * 2 + indent.should == shiftwidth * 2 or indent.should == 4 end end @@ -379,7 +379,7 @@ it "ignores the call signature after a function" do vim.feedkeys 'idef f( JEDI_CALL_SIGNATURE\' - indent.should == shiftwidth * 2 + indent.should == shiftwidth * 2 or indent.should == 4 end end end