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

Commit aa9c4a1

Browse files
committed
Align spec style
1 parent 75580ea commit aa9c4a1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

spec/rspec/support/spec/stderr_splitter_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,18 +109,18 @@
109109
"""
110110
end
111111

112-
cloned = $stderr.clone
113-
expect($stderr.to_io).not_to be_a(File)
112+
cloned = splitter.clone
113+
expect(splitter.to_io).not_to be_a(File)
114114

115115
tempfile = Tempfile.new("foo")
116116
begin
117-
$stderr.reopen(tempfile)
118-
expect($stderr.to_io).to be_a(File)
117+
splitter.reopen(tempfile)
118+
expect(splitter.to_io).to be_a(File)
119119
ensure
120-
$stderr.reopen(cloned)
120+
splitter.reopen(cloned)
121121
tempfile.close
122122
tempfile.unlink
123123
end
124-
expect($stderr.to_io).not_to be_a(File)
124+
expect(splitter.to_io).not_to be_a(File)
125125
end
126126
end

0 commit comments

Comments
 (0)