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

Commit

Permalink
Align spec style
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Aug 20, 2024
1 parent 75580ea commit aa9c4a1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/rspec/support/spec/stderr_splitter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit aa9c4a1

Please sign in to comment.