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

Commit

Permalink
Reword comment notes
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Aug 20, 2024
1 parent aa9c4a1 commit 4d7095b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/rspec/support/spec/stderr_splitter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@
expect(splitter.to_io).not_to eq(splitter.clone.to_io)
end

# This is essentially what the `to_stderr_from_any_process` matcher attempts
# to do in CaptureStreamToTempfile.
# 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?
skip """
Expand All @@ -121,6 +120,7 @@
tempfile.close
tempfile.unlink
end
# This is the important part of the test that would fail without proper cloning hygeine
expect(splitter.to_io).not_to be_a(File)
end
end

0 comments on commit 4d7095b

Please sign in to comment.