bbatsov/rubocop — pull request #1433 by janraasch (2014-11-05 10:35:51+00:00)
Title: Add test for empty elsif branch

This used to work in `v0.26.1`.

Not sure exactly where this error was introduced.

Stacktrace:

```bash
Failure/Error: inspect_source(cop, ['if cond',
NoMethodError:
undefined method `source_buffer' for nil:NilClass
# ./lib/rubocop/cop/style/multiline_if_then.rb:32:in `on_normal_if_unless'
# ./lib/rubocop/cop/mixin/on_normal_if_unless.rb:20:in `invoke_hook_for_normal_if_unless'
# ./lib/rubocop/cop/mixin/on_normal_if_unless.rb:10:in `on_if'
# (eval):5:in `block (2 levels) in on_if'
# ./lib/rubocop/cop/commissioner.rb:92:in `with_cop_error_handling'
# (eval):4:in `block in on_if'
# (eval):2:in `each'
# (eval):2:in `on_if'
# (eval):9:in `on_if'
# ./lib/rubocop/cop/commissioner.rb:52:in `investigate'
# ./spec/support/cop_helper.rb:51:in `_investigate'
# ./spec/support/cop_helper.rb:14:in `inspect_source'
# ./spec/rubocop/cop/style/multiline_if_then_spec.rb:11:in `block (2 levels) in '
```