Skip to content

Handle exception message with invalid UTF-8; For rbx

Created by: bf4

See https://travis-ci.org/mikel/mail/jobs/33707769#L129

An exception occurred running /home/travis/build/mikel/mail/gemfiles/vendor/bundle/rbx/2.1/gems/rspec-core-3.0.4/exe/rspec:
    invalid byte sequence in UTF-8 (ArgumentError)
Backtrace:
    Rubinius::Splitter.valid_encoding? at kernel/common/splitter.rb:17
    Rubinius::Splitter.split at kernel/common/splitter.rb:22
    String#split at kernel/common/string.rb:515
    RSpec::Core::Notifications::FailedExampleNotification#failure_lines at \
          gemfiles/vendor/bundle/rbx/2.1/gems/rspec-core-3.0.4/lib/rspec/core/notifications.rb:220

To reproduce with just the one test

 rspec spec/rspec/core/formatters/base_text_formatter_spec.rb:108

Update Ultimately the encoding bug was fixed in https://github.com/rspec/rspec-support/pull/172

Merge request reports