Class: Luna::RSpec::Formatters::Checks

Inherits:
RSpec::Core::Formatters::BaseTextFormatter
  • Object
show all
Includes:
Profile
Defined in:
lib/luna/rspec/formatters/checks.rb

Constant Summary

Constants included from Profile

Profile::EXAMPLES, Profile::EXAMPLES_HEADER, Profile::GROUPS, Profile::GROUPS_HEADER

Instance Method Summary collapse

Methods included from Profile

#dump_profile, #helpers

Instance Method Details

#example_failed(e) ⇒ Object



40
41
42
43
44
# File 'lib/luna/rspec/formatters/checks.rb', line 40

def example_failed(e)
  super(e) if defined?(super)
  output.print("\s")
  output.print(failure_color("\u2718"))
end

#example_passed(e) ⇒ Object



34
35
36
37
38
# File 'lib/luna/rspec/formatters/checks.rb', line 34

def example_passed(e)
  super(e) if defined?(super)
  output.print("\s")
  output.print(success_color("\u2713"))
end

#example_pending(e) ⇒ Object



46
47
48
49
50
# File 'lib/luna/rspec/formatters/checks.rb', line 46

def example_pending(e)
  super(e) if defined?(super)
  output.print("\s")
  output.print(pending_color("\u203D"))
end

#start(*args) ⇒ Object



24
25
26
27
# File 'lib/luna/rspec/formatters/checks.rb', line 24

def start(*args)
  super(*args) if defined?(super)
  output.puts
end

#start_dump(*args) ⇒ Object



29
30
31
32
# File 'lib/luna/rspec/formatters/checks.rb', line 29

def start_dump(*args)
  super(*args) if defined?(super)
  output.puts
end