From b853a35ae1e8d891ce59274a7c556e54f1effdb1 Mon Sep 17 00:00:00 2001 From: Jon Rowe Date: Tue, 10 Sep 2024 11:57:51 +0100 Subject: [PATCH] debug --- spec/rspec/support/spec/stderr_splitter_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/rspec/support/spec/stderr_splitter_spec.rb b/spec/rspec/support/spec/stderr_splitter_spec.rb index 7bee883b..59230bf0 100644 --- a/spec/rspec/support/spec/stderr_splitter_spec.rb +++ b/spec/rspec/support/spec/stderr_splitter_spec.rb @@ -102,8 +102,10 @@ # This spec replicates what matchers do when capturing stderr, e.g `to_stderr_from_any_process` it 'is able to restore the stream from a cloned StdErrSplitter' do if RSpec::Support::Ruby.jruby? && !RSpec::Support::Ruby.jruby_9000? - skip "JRuby < 9.0.0.0 doesn't have a predictable identifier for stdout" + #skip "JRuby < 9.0.0.0 doesn't have a predictable identifier for stdout" end + puts STDERR..methods.sort.inspect + puts defined?(STDIO) && STDIO::ERR.inspect cloned = splitter.clone expect(splitter.to_io).to be_stderr