From 102d1b55624556a2c74a218d60eadc69acca2a48 Mon Sep 17 00:00:00 2001 From: Phil Pirozhkov Date: Sun, 18 Aug 2024 14:24:35 +0300 Subject: [PATCH] Clamp a spec on JRuby JRuby historically used its own implementation of Tempfile. This spec relies on a check that fails on JRuby. Evidently, JRuby starting from version 10 is going to behave similarly to CRuby. --- spec/rspec/support/spec/stderr_splitter_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/rspec/support/spec/stderr_splitter_spec.rb b/spec/rspec/support/spec/stderr_splitter_spec.rb index 5f7258ec..1b1ac0d6 100644 --- a/spec/rspec/support/spec/stderr_splitter_spec.rb +++ b/spec/rspec/support/spec/stderr_splitter_spec.rb @@ -101,7 +101,7 @@ # This is essentially what the `to_stderr_from_any_process` matcher attempts # to do in CaptureStreamToTempfile. - it 'is able to restore the stream from a cloned StdErrSplitter' do + it 'is able to restore the stream from a cloned StdErrSplitter', :pending => RSpec::Support::Ruby.jruby? do cloned = $stderr.clone expect($stderr.to_io).not_to be_a(File)