class RSpec::Core::Notifications::SkippedExampleNotification

The ‘SkippedExampleNotification` extends `ExampleNotification` with things useful for specs that are skipped.

@attr [RSpec::Core::Example] example the current example @see ExampleNotification

Public Instance Methods

@return [String] The pending detail fully formatted in the way that

RSpec's built-in formatters emit.
# File rspec-core/lib/rspec/core/notifications.rb, line 235
def fully_formatted(pending_number, colorizer=::RSpec::Core::Formatters::ConsoleCodes)
  formatted_caller = RSpec.configuration.backtrace_formatter.backtrace_line(example.location)

  [
    colorizer.wrap("\n  #{pending_number}) #{example.full_description}", :pending),
    "\n     ",
    Formatters::ExceptionPresenter::PENDING_DETAIL_FORMATTER.call(example, colorizer),
    "\n",
    colorizer.wrap("     # #{formatted_caller}\n", :detail)
  ].join("")
end