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

Commit 4d7095b

Browse files
committed
Reword comment notes
1 parent aa9c4a1 commit 4d7095b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/rspec/support/spec/stderr_splitter_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@
9999
expect(splitter.to_io).not_to eq(splitter.clone.to_io)
100100
end
101101

102-
# This is essentially what the `to_stderr_from_any_process` matcher attempts
103-
# to do in CaptureStreamToTempfile.
102+
# This spec replicates what matchers do when capturing stderr, e.g `to_stderr_from_any_process`
104103
it 'is able to restore the stream from a cloned StdErrSplitter' do
105104
if RSpec::Support::Ruby.jruby?
106105
skip """
@@ -121,6 +120,7 @@
121120
tempfile.close
122121
tempfile.unlink
123122
end
123+
# This is the important part of the test that would fail without proper cloning hygeine
124124
expect(splitter.to_io).not_to be_a(File)
125125
end
126126
end

0 commit comments

Comments
 (0)