10000 Backport from ruby/ruby · ruby/csv@bbf4cb5 · GitHub
[go: up one dir, main page]

Skip to content

Commit bbf4cb5

Browse files
committed
Backport from ruby/ruby
1 parent 284ce81 commit bbf4cb5

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

lib/csv.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,7 @@ def shift
13261326
# ASCII compatible String.
13271327
#
13281328
def inspect
1329-
str = ["<#", self.class.to_s, " io_type:"]
1329+
str = ["#<", self.class.to_s, " io_type:"]
13301330
# show type of wrapped IO
13311331
if @io == $stdout then str << "$stdout"
13321332
elsif @io == $stdin then str << "$stdin"

test/csv/helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
require "csv"
55

6-
require_relative "../lib/with_different_ofs.rb"
6+
require_relative "../lib/with_different_ofs"
77

88
module Helper
99
def with_chunk_size(chunk_size)

test/csv/interface/test_read.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def test_open_encoding_invalid
104104
end
105105

106106
def test_open_encoding_nonexistent
107-
_output, error = capture_io do
107+
_output, error = capture_output do
108108
CSV.open(@input.path, encoding: "nonexistent") do
109109
end
110110
end

test/lib/minitest/unit.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ def capture_io
484484

485485
return captured_stdout.string, captured_stderr.string
486486
end
487+
alias capture_output capture_io
487488

488489
##
489490
# Captures $stdout and $stderr into strings, using Tempfile to

0 commit comments

Comments
 (0)
0