X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/c1bd583a7f217958d2c79621af15cdde13607f58..eed8e99ce344d773997c4683aef9de3e2ed7ec62:/spec/indent/indent_spec.rb diff --git a/spec/indent/indent_spec.rb b/spec/indent/indent_spec.rb index 77b94ef..a622cf8 100644 --- a/spec/indent/indent_spec.rb +++ b/spec/indent/indent_spec.rb @@ -144,6 +144,15 @@ shared_examples_for "vim" do end end + describe "when an 'else' is followed by" do + before { vim.feedkeys 'i\\else:\XXX\' } + it "a 'finally', it lines up with the 'else'" do + vim.feedkeys 'finally:' + indent.should == shiftwidth * 2 + end + end + + describe "when a 'try' is followed by" do before { vim.feedkeys 'i\\try:\' } it "an 'except', it lines up with the 'try'" do