Class: RSpec::Core::Notifications::SkippedExampleNotification
- Inherits:
-
ExampleNotification
- Object
- Struct
- ExampleNotification
- RSpec::Core::Notifications::SkippedExampleNotification
- Defined in:
- lib/rspec/core/notifications.rb
Overview
The SkippedExampleNotification
extends ExampleNotification
with
things useful for specs that are skipped.
Instance Attribute Summary (collapse)
-
- (RSpec::Core::Example) example
the current example.
Instance Method Summary (collapse)
-
- (String) fully_formatted(pending_number, colorizer = ::RSpec::Core::Formatters::ConsoleCodes)
The pending detail fully formatted in the way that RSpec's built-in formatters emit.
Instance Attribute Details
- (RSpec::Core::Example) example
the current example
361 362 363 |
# File 'lib/rspec/core/notifications.rb', line 361 def example @example end |
Instance Method Details
- (String) fully_formatted(pending_number, colorizer = ::RSpec::Core::Formatters::ConsoleCodes)
Returns The pending detail fully formatted in the way that RSpec's built-in formatters emit.
367 368 369 370 |
# File 'lib/rspec/core/notifications.rb', line 367 def fully_formatted(pending_number, colorizer=::RSpec::Core::Formatters::ConsoleCodes) formatted_caller = RSpec.configuration.backtrace_formatter.backtrace_line(example.location) fully_formatted_header(pending_number, colorizer) << colorizer.wrap(" # #{formatted_caller}\n", :detail) end |