class RSpec::Formatters::VimQuickfix
Public Instance Methods
example_failed(notification)
click to toggle source
# 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
Private Instance Methods
format_message(msg)
click to toggle source
# File lib/rspec-formatters/formatters/vim_quickfix.rb, line 19 def format_message msg msg.gsub("\n", ' ')[0,80] end