Class: RSpec::Formatters::VimQuickfix

Inherits:
Core::Formatters::BaseFormatter
  • Object
show all
Defined in:
lib/rspec-formatters/formatters/vim_quickfix.rb

Instance Method Summary collapse

Instance Method Details

#example_failed(notification) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/rspec-formatters/formatters/vim_quickfix.rb', line 8

def example_failed notification
  exception = notification.exception
  message = format_message exception.message
  example = notification.example
  location    = example.location
  output.puts "#{location}: #{example.example_group.description.strip} " +
    "#{example.description.strip}: #{message.strip}" if location
end