Class: RSpec::Core::Notifications::SkippedExampleNotification
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
ExampleNotification ,
Struct
|
|
Instance Chain:
self,
ExampleNotification ,
Struct
|
|
Inherits: |
RSpec::Core::Notifications::ExampleNotification
|
Defined in: | rspec-core/lib/rspec/core/notifications.rb |
Overview
The SkippedExampleNotification
extends ExampleNotification
with things useful for specs that are skipped.
Class Method Summary
ExampleNotification
- Inherited
Instance Attribute Summary
-
#example
rw
The
SkippedExampleNotification
extendsExampleNotification
with things useful for specs that are skipped.
ExampleNotification
- Inherited
#example | The |
Instance Method Summary
Instance Attribute Details
#example (rw)
The SkippedExampleNotification
extends ExampleNotification
with things useful for specs that are skipped.
# File 'rspec-core/lib/rspec/core/notifications.rb', line 230
class SkippedExampleNotification < ExampleNotification public_class_method :new # @return [String] The pending detail fully formatted in the way that # RSpec's built-in formatters emit. def fully_formatted(pending_number, colorizer=::RSpec::Core::Formatters::ConsoleCodes)
Instance Method Details
#fully_formatted(pending_number, colorizer = ::RSpec::Core::Formatters::ConsoleCodes) ⇒ String
# 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