From aa9c4a1159ccc1c23fa96f6cdfb583d36c20b7dd Mon Sep 17 00:00:00 2001 From: Jon Rowe Date: Tue, 20 Aug 2024 10:45:33 +0100 Subject: [PATCH] Align spec style --- spec/rspec/support/spec/stderr_splitter_spec.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/rspec/support/spec/stderr_splitter_spec.rb b/spec/rspec/support/spec/stderr_splitter_spec.rb index 40c68149..c9791693 100644 --- a/spec/rspec/support/spec/stderr_splitter_spec.rb +++ b/spec/rspec/support/spec/stderr_splitter_spec.rb @@ -109,18 +109,18 @@ """ end - cloned = $stderr.clone - expect($stderr.to_io).not_to be_a(File) + cloned = splitter.clone + expect(splitter.to_io).not_to be_a(File) tempfile = Tempfile.new("foo") begin - $stderr.reopen(tempfile) - expect($stderr.to_io).to be_a(File) + splitter.reopen(tempfile) + expect(splitter.to_io).to be_a(File) ensure - $stderr.reopen(cloned) + splitter.reopen(cloned) tempfile.close tempfile.unlink end - expect($stderr.to_io).not_to be_a(File) + expect(splitter.to_io).not_to be_a(File) end end