Class Spec::Runner::Formatter::SpecdocFormatter

  1. lib/spec/runner/formatter/specdoc_formatter.rb

Public instance methods

add_example_group (example_group)
[show source]
# File lib/spec/runner/formatter/specdoc_formatter.rb, line 7
        def add_example_group(example_group)
          super
          output.puts
          output.puts example_group.description
          output.flush
        end
example_failed (example, counter, failure)
[show source]
# File lib/spec/runner/formatter/specdoc_formatter.rb, line 14
        def example_failed(example, counter, failure)
          output.puts(red("- #{example.description} (FAILED - #{counter})"))
          output.flush
        end
example_passed (example)
[show source]
# File lib/spec/runner/formatter/specdoc_formatter.rb, line 19
        def example_passed(example)
          message = "- #{example.description}"
          output.puts green(message)
          output.flush
        end
example_pending (example, message, pending_caller)
[show source]
# File lib/spec/runner/formatter/specdoc_formatter.rb, line 25
        def example_pending(example, message, pending_caller)
          super
          output.puts yellow("- #{example.description} (PENDING: #{message})")
          output.flush
        end