Method: RSpec::Core::Notifications::ExamplesNotification#fully_formatted_pending_examples
- Defined in:
- lib/rspec/core/notifications.rb
permalink #fully_formatted_pending_examples(colorizer = ::RSpec::Core::Formatters::ConsoleCodes) ⇒ String
Returns The list of pending examples, fully formatted in the way that RSpec's built-in formatters emit.
122 123 124 125 126 127 128 129 130 131 132 |
# File 'lib/rspec/core/notifications.rb', line 122 def fully_formatted_pending_examples(colorizer=::RSpec::Core::Formatters::ConsoleCodes) return if RSpec.configuration.pending_failure_output == :skip formatted = "\nPending: (Failures listed here are expected and do not affect your suite's status)\n".dup pending_notifications.each_with_index do |notification, index| formatted << notification.fully_formatted(index.next, colorizer) end formatted end |