The `PendingExampleFixedNotification` extends `ExampleNotification` with things useful for specs that pass when they are expected to fail.
@attr [RSpec::Core::Example] example the current example @see ExampleNotification
Returns the message generated for this failure colorized line by line.
@param colorizer [#wrap] An object to colorize the #message_lines by @return [Array(String)] The example failure message colorized
# File lib/rspec/core/notifications.rb, line 280 def colorized_message_lines(colorizer = ::RSpec::Core::Formatters::ConsoleCodes) message_lines.map { |line| colorizer.wrap(line, RSpec.configuration.fixed_color) } end
Returns the examples description
@return [String] The example description
# File lib/rspec/core/notifications.rb, line 265 def description "#{example.full_description} FIXED" end
Returns the message generated for this failure line by line.
@return [Array(String)] The example failure message
# File lib/rspec/core/notifications.rb, line 272 def message_lines ["Expected pending '#{example.execution_result.pending_message}' to fail. No Error was raised."] end