Class: RSpec::Core::Notifications::FailedExampleNotification
- Inherits:
-
Object
- Object
- RSpec::Core::Notifications::FailedExampleNotification
- Defined in:
- opal/opal/rspec/fixes/rspec/core/notifications/failed_example_notification.rb
Instance Method Summary collapse
Instance Method Details
#fully_formatted(failure_number, colorizer = ::RSpec::Core::Formatters::ConsoleCodes) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'opal/opal/rspec/fixes/rspec/core/notifications/failed_example_notification.rb', line 3 def fully_formatted(failure_number, colorizer=::RSpec::Core::Formatters::ConsoleCodes) formatted = "\n #{failure_number}) #{description}\n" (colorizer).each do |line| # formatted << RSpec::Support::EncodedString.new(" #{line}\n", encoding_of(formatted)) # string mutation formatted = formatted + RSpec::Support::EncodedString.new(" #{line}\n", encoding_of(formatted)) end colorized_formatted_backtrace(colorizer).each do |line| # formatted << RSpec::Support::EncodedString.new(" #{line}\n", encoding_of(formatted)) # string mutation formatted = formatted + RSpec::Support::EncodedString.new(" #{line}\n", encoding_of(formatted)) end formatted end |