Class: Rspec::Formatter::Antipop

Inherits:
RSpec::Core::Formatters::BaseTextFormatter
  • Object
show all
Defined in:
lib/rspec/formatter/antipop.rb,
lib/rspec/formatter/antipop/version.rb

Constant Summary collapse

VERSION =
"0.0.1"

Instance Method Summary collapse

Instance Method Details

#example_failed(example) ⇒ Object



16
17
18
19
# File 'lib/rspec/formatter/antipop.rb', line 16

def example_failed(example)
  super(example)
  output.print red('1')
end

#example_passed(example) ⇒ Object



6
7
8
9
# File 'lib/rspec/formatter/antipop.rb', line 6

def example_passed(example)
  super(example)
  output.print green('!')
end

#example_pending(example) ⇒ Object



11
12
13
14
# File 'lib/rspec/formatter/antipop.rb', line 11

def example_pending(example)
  super(example)
  output.print yellow('*')
end

#start_dumpObject



21
22
23
24
# File 'lib/rspec/formatter/antipop.rb', line 21

def start_dump
  super()
  output.puts
end