Class/Module Index [+]

Quicksearch

RSpec::Core::Formatters::DocumentationFormatter

@private

Public Class Methods

new(output) click to toggle source
# File lib/rspec/core/formatters/documentation_formatter.rb, line 11
def initialize(output)
  super
  @group_level = 0
end

Public Instance Methods

example_failed(failure) click to toggle source
# File lib/rspec/core/formatters/documentation_formatter.rb, line 35
def example_failed(failure)
  output.puts failure_output(failure.example, failure.example.execution_result.exception)
end
example_group_finished(notification) click to toggle source
# File lib/rspec/core/formatters/documentation_formatter.rb, line 23
def example_group_finished(notification)
  @group_level -= 1
end
example_group_started(notification) click to toggle source
# File lib/rspec/core/formatters/documentation_formatter.rb, line 16
def example_group_started(notification)
  output.puts if @group_level == 0
  output.puts "#{current_indentation}#{notification.group.description.strip}"

  @group_level += 1
end
example_passed(passed) click to toggle source
# File lib/rspec/core/formatters/documentation_formatter.rb, line 27
def example_passed(passed)
  output.puts passed_output(passed.example)
end
example_pending(pending) click to toggle source
# File lib/rspec/core/formatters/documentation_formatter.rb, line 31
def example_pending(pending)
  output.puts pending_output(pending.example, pending.example.execution_result.pending_message)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.