summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/-ext-/win32/test_console_attr.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/-ext-/win32/test_console_attr.rb b/test/-ext-/win32/test_console_attr.rb
index 6e8f93ab99..3afb2d9378 100644
--- a/test/-ext-/win32/test_console_attr.rb
+++ b/test/-ext-/win32/test_console_attr.rb
@@ -4,13 +4,12 @@ if /mswin|mingw/ =~ RUBY_PLATFORM and STDOUT.tty?
require 'test/unit'
class Test_Win32Console < Test::Unit::TestCase
- def setup
- print "\e[m!"
+ def reset
+ STDOUT.console_attribute(7)
end
- def teardown
- print "\e[m!"
- end
+ alias setup reset
+ alias teardown reset
def test_default
info = STDOUT.console_info