Skip to content
Prev Previous commit
Close the file in the text-mode write count spec
  • Loading branch information
aminmansuri committed Sep 17, 2026
commit 9a3974a296570f40268af01e87c3afaaa48bb47c
1 change: 1 addition & 0 deletions spec/ruby/core/io/write_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@
it "returns the number of bytes given, not the number written, in text mode" do
@io = new_io(@fname, "w")
@io.write("a\nb\n").should == 4
@io.close
end

it "does not normalize line endings in binary mode" do
Expand Down
Loading