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.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb
index a44e5ff..c69eec7 100644
--- a/test/io/console/test_io_console.rb
+++ b/test/io/console/test_io_console.rb
@@ -68,6 +68,14 @@ class TestIO_Console < Test::Unit::TestCase
}
end
+ def test_raw!
+ helper {|m, s|
+ s.raw!
+ s.print "foo\n"
+ assert_equal("foo\n", m.gets)
+ }
+ end
+
def test_cooked
helper {|m, s|
assert_send([s, :echo?])