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

Commit bb8636e

Browse files
committed
Remove expect_output_warning_on_ruby_lt_2
1 parent 46ace52 commit bb8636e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

spec/rspec/mocks/partial_double_spec.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,10 @@ def read_file(file)
180180
file_2.close
181181
end
182182

183-
def expect_output_warning_on_ruby_lt_2
184-
yield
185-
end
186-
187183
it "allows `write` to be stubbed and reset" do
188184
allow(file_1).to receive(:write)
189185
file_1.reopen(file_2)
190-
expect_output_warning_on_ruby_lt_2 { reset file_1 }
186+
reset file_1
191187

192188
expect {
193189
# Writing to a file that's been reopened to a 2nd file writes to both files.

0 commit comments

Comments
 (0)