Skip to content

Commit b66f7c8

Browse files
committed
Show if console IO responds to the method
1 parent 1513ce7 commit b66f7c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test/io/console/test_io_console.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def set_winsize_teardown
4646

4747
def test_failed_path
4848
File.open(IO::NULL) do |f|
49-
e = assert_raise(*FailedPathExceptions) do
49+
e = assert_raise(*FailedPathExceptions, proc {STDIN.respond_to?(:echo?)}) do
5050
f.echo?
5151
end
5252
assert_include(e.message, IO::NULL)

0 commit comments

Comments
 (0)