Class: RspecVimFormatter

Inherits:
RSpec::Core::Formatters::BaseTextFormatter
  • Object
show all
Defined in:
lib/rspec_vim_formatter.rb

Instance Method Summary collapse

Instance Method Details

#dump_failures(*args) ⇒ Object



16
# File 'lib/rspec_vim_formatter.rb', line 16

def dump_failures *args; end

#dump_pending(*args) ⇒ Object



17
# File 'lib/rspec_vim_formatter.rb', line 17

def dump_pending *args; end

#dump_summary(*args) ⇒ Object



19
# File 'lib/rspec_vim_formatter.rb', line 19

def dump_summary *args; end

#example_failed(example) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/rspec_vim_formatter.rb', line 5

def example_failed example
  exception = example.execution_result[:exception]
  return unless path = extract_path(exception)

  message = format_message exception.message
  path    = format_caller(path)
  output.puts "#{path}: #{example.example_group.description.strip}" +
    "#{example.description.strip}: #{message.strip}"
end

#example_pending(*args) ⇒ Object



15
# File 'lib/rspec_vim_formatter.rb', line 15

def example_pending *args;  end

#message(msg) ⇒ Object



18
# File 'lib/rspec_vim_formatter.rb', line 18

def message msg; end

#seed(*args) ⇒ Object



20
# File 'lib/rspec_vim_formatter.rb', line 20

def seed *args; end