class RSpec::Core::Notifications::PendingExampleFixedNotification
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
Public Instance Methods
colorized_message_lines(colorizer=::RSpec::Core::Formatters::ConsoleCodes)
click to toggle source
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 314 def colorized_message_lines(colorizer=::RSpec::Core::Formatters::ConsoleCodes) message_lines.map { |line| colorizer.wrap(line, RSpec.configuration.fixed_color) } end
description()
click to toggle source
Returns the examples description.
@return [String] The example description
# File lib/rspec/core/notifications.rb, line 299 def description "#{example.full_description} FIXED" end
message_lines()
click to toggle source
Returns the message generated for this failure line by line.
@return [Array<String>] The example failure message
# File lib/rspec/core/notifications.rb, line 306 def message_lines ["Expected pending '#{example.execution_result.pending_message}' to fail. No Error was raised."] end