Sha256: 60fbc00762b453fd5b1fc66592c65ac02c24be2443de3a08ce4043d40cf933ad

Contents?: true

Size: 861 Bytes

Versions: 15

Compression:

Stored size: 861 Bytes

Contents

module ::RSpec::Core::Notifications
  class FailedExampleNotification
    def fully_formatted(failure_number, colorizer=::RSpec::Core::Formatters::ConsoleCodes)
      formatted = "\n  #{failure_number}) #{description}\n"

      colorized_message_lines(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
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
opal-rspec-0.8.0 lib-opal/opal/rspec/fixes/rspec/core/notifications/failed_example_notification.rb
opal-rspec-0.8.0.alpha3 lib-opal/opal/rspec/fixes/rspec/core/notifications/failed_example_notification.rb
opal-rspec-0.8.0.alpha2 lib-opal/opal/rspec/fixes/rspec/core/notifications/failed_example_notification.rb
opal-rspec-0.8.0.alpha1 lib-opal/opal/rspec/fixes/rspec/core/notifications/failed_example_notification.rb
opal-rspec-0.7.1 lib-opal/opal/rspec/fixes/rspec/core/notifications/failed_example_notification.rb
opal-rspec-0.7.0 lib-opal/opal/rspec/fixes/rspec/core/notifications/failed_example_notification.rb
opal-rspec-0.6.2 opal/opal/rspec/fixes/rspec/core/notifications/failed_example_notification.rb
opal-rspec-0.7.0.rc.2 lib-opal/opal/rspec/fixes/rspec/core/notifications/failed_example_notification.rb
opal-rspec-0.7.0.rc.1 lib-opal/opal/rspec/fixes/rspec/core/notifications/failed_example_notification.rb
opal-rspec-0.6.1 opal/opal/rspec/fixes/rspec/core/notifications/failed_example_notification.rb
opal-rspec-0.6.0 opal/opal/rspec/fixes/rspec/core/notifications/failed_example_notification.rb
opal-rspec-0.6.0.beta1 opal/opal/rspec/fixes/rspec/core/notifications/failed_example_notification.rb
opal-connect-rspec-0.5.0 opal/opal/rspec/fixes/rspec/core/notifications/failed_example_notification.rb
opal-rspec-0.5.0 opal/opal/rspec/fixes/rspec/core/notifications/failed_example_notification.rb
opal-rspec-0.5.0.beta3 opal/opal/rspec/fixes/rspec/core/notifications/failed_example_notification.rb