Class: RSpec::Core::Notifications::PendingExampleFailedAsExpectedNotification
- Inherits:
-
FailedExampleNotification
- Object
- Struct
- ExampleNotification
- FailedExampleNotification
- RSpec::Core::Notifications::PendingExampleFailedAsExpectedNotification
- Defined in:
- lib/rspec/core/notifications.rb
Overview
The PendingExampleFailedAsExpectedNotification
extends FailedExampleNotification
with
things useful for pending specs that fail as expected.
Instance Attribute Summary (collapse)
-
- (RSpec::Core::Example) example
the current example.
Instance Method Summary (collapse)
-
- (Exception) exception
The exception that occurred while the pending example was executed.
-
- (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.
Methods inherited from FailedExampleNotification
#colorized_formatted_backtrace, #colorized_message_lines, #description, #formatted_backtrace, #message_lines
Instance Attribute Details
- (RSpec::Core::Example) example
the current example
334 335 336 |
# File 'lib/rspec/core/notifications.rb', line 334 def example @example end |
Instance Method Details
- (Exception) exception
Returns The exception that occurred while the pending example was executed
339 340 341 |
# File 'lib/rspec/core/notifications.rb', line 339 def exception example.execution_result.pending_exception end |
- (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.
345 346 347 |
# File 'lib/rspec/core/notifications.rb', line 345 def fully_formatted(pending_number, colorizer=::RSpec::Core::Formatters::ConsoleCodes) fully_formatted_header(pending_number, colorizer) << (colorizer) end |