Skip to content

Commit 331c109

Browse files
committed
Reset IOGate in test_reset
1 parent ba36067 commit 331c109

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

test/reline/helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ def test_mode(ansi: false)
2121
end
2222

2323
def test_reset
24+
remove_const('IOGate') if const_defined?('IOGate')
25+
const_set('IOGate', Reline::GeneralIO)
2426
Reline.instance_variable_set(:@core, nil)
2527
end
2628
end

test/reline/test_ansi_with_terminfo.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ def setup
99
end
1010

1111
def teardown
12-
Reline.send(:test_mode, ansi: false) # Change IOGate back to GeneralIO
1312
Reline.test_reset
1413
end
1514

test/reline/test_ansi_without_terminfo.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ def setup
99
end
1010

1111
def teardown
12-
Reline.send(:test_mode, ansi: false) # Change IOGate back to GeneralIO
1312
Reline.test_reset
1413
end
1514

0 commit comments

Comments
 (0)