Fixes the bug described by PR #1994
Currently, inserting a newline after a ruby method will incorrectly cause the following line to repeat the method header. This commit adds a test case to illustrate the bug.
See https://github.com/mawww/kakoune/issues/1525#issuecomment-324571751.