Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Commit

Permalink
Clamp a spec on JRuby
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pirj authored Aug 18, 2024
1 parent da06053 commit 102d1b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/rspec/support/spec/stderr_splitter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 102d1b5

Please sign in to comment.