Class: RSpec::Core::Notifications::PendingExampleFixedNotification
- Inherits:
- 
      FailedExampleNotification
        - Object
- Struct
- ExampleNotification
- FailedExampleNotification
- RSpec::Core::Notifications::PendingExampleFixedNotification
 
- Defined in:
- lib/rspec/core/notifications.rb
Overview
The PendingExampleFixedNotification extends ExampleNotification with
things useful for specs that pass when they are expected to fail.
Instance Attribute Summary (collapse)
- 
  
      - (RSpec::Core::Example) example 
  
    the current example. 
Instance Method Summary (collapse)
- 
  
      - (Array(String)) colorized_message_lines(colorizer = ::RSpec::Core::Formatters::ConsoleCodes) 
  
    Returns the message generated for this failure colorized line by line. 
- 
  
      - (String) description 
  
    Returns the examples description. 
- 
  
      - (Array(String)) message_lines 
  
    Returns the message generated for this failure line by line. 
Methods inherited from FailedExampleNotification
#colorized_formatted_backtrace, #exception, #formatted_backtrace, #fully_formatted
Instance Attribute Details
- (RSpec::Core::Example) example
the current example
| 294 295 296 | # File 'lib/rspec/core/notifications.rb', line 294 def example @example end | 
Instance Method Details
- (Array(String)) colorized_message_lines(colorizer = ::RSpec::Core::Formatters::ConsoleCodes)
Returns the message generated for this failure colorized line by line.
| 315 316 317 | # File 'lib/rspec/core/notifications.rb', line 315 def (colorizer = ::RSpec::Core::Formatters::ConsoleCodes) .map { |line| colorizer.wrap(line, RSpec.configuration.fixed_color) } end | 
- (String) description
Returns the examples description
| 300 301 302 | # File 'lib/rspec/core/notifications.rb', line 300 def description "#{example.full_description} FIXED" end | 
- (Array(String)) message_lines
Returns the message generated for this failure line by line.
| 307 308 309 | # File 'lib/rspec/core/notifications.rb', line 307 def ["Expected pending '#{example.execution_result.}' to fail. No Error was raised."] end |