summaryrefslogtreecommitdiff
path: root/test/io/console/test_io_console.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/io/console/test_io_console.rb')
-rw-r--r--test/io/console/test_io_console.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb
index 5d7a583cb0..972525043c 100644
--- a/test/io/console/test_io_console.rb
+++ b/test/io/console/test_io_console.rb
@@ -185,7 +185,7 @@ class TestIO_Console < Test::Unit::TestCase
run_pty("p IO.console.getpass('> ')") do |r, w|
assert_equal("> ", r.readpartial(10))
w.print "asdf\n"
- assert_equal("\r\n", r.gets)
+ assert_include(r.gets, "\n")
assert_equal("\"asdf\"", r.gets.chomp)
end
end