Closed pucinsk closed 3 years ago
Good catch and thanks for letting me know. The fix might be as easy as a condition to verify the object responds to to_io
:
- self.logger = $stdout.to_io
+ self.logger = $stdout.respond_to?(:to_io) ? $stdout.to_io : $stdout
I'll dig into it more tonight and hopefully get a fix out.
Related, I found an old Ruby bug, #5479, that discusses adding StringIO#to_io
but looks like it was rejected 10 years ago.
Thank you very much @tristandunn !
rspec --bisect
works. All good!
Description When I run
rspec
with--bisect
option enabled then I get an error regarding$stdout
usage.Error
This error occurs because
RSpec::Core::Bisect::ForkRunner
overrides$stdout
withStringIO
here.Any ideas how it could be fixed? 🙏
Versions:
Thank you for your time