X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/4224ee71e4cdbfa8ef08a59b0db62d915af1b0b6..4d412618581331ddbae35939de9f82d7e37cdf2c:/spec/indent/indent_spec.rb?ds=inline diff --git a/spec/indent/indent_spec.rb b/spec/indent/indent_spec.rb index e300cb0..1026bd1 100644 --- a/spec/indent/indent_spec.rb +++ b/spec/indent/indent_spec.rb @@ -76,6 +76,14 @@ shared_examples_for "vim" do end end + describe "when using gq to reindent a '(' that is" do + before { vim.feedkeys 'itest(' } + it "something and has a string without spaces at the end" do + vim.feedkeys 'something_very_long_blaaaaaaaaa, "some_very_long_string_blaaaaaaaaaaaaaaaaaaaa"\gqq' + indent.should == 5 + end + end + describe "when after multiple parens of different types" do it "indents by one level" do vim.feedkeys 'if({\' @@ -217,8 +225,8 @@ shared_examples_for "vim" do end describe "when current line is dedented compared to the last non-empty line" do - before { vim.feedkeys 'i\\if x:\y = True\\\' } - it "and current line has a valid indentation (Part 1)" do + before { vim.feedkeys 'i\\if x:\y = True\\\' } + it "and current line has a valid indentation" do vim.feedkeys '0i\if y:' proposed_indent.should == -1 end