diff --git a/test/irb/test_cmd.rb b/test/irb/test_cmd.rb index b1e2a2213..8f17ef8d4 100644 --- a/test/irb/test_cmd.rb +++ b/test/irb/test_cmd.rb @@ -987,7 +987,7 @@ def test_edit_with_instance_method end def test_edit_with_editor_env_var - original_visual = ENV.delete("VISUAL") + ENV.delete("VISUAL") out, err = execute_lines( "edit", @@ -997,8 +997,6 @@ def test_edit_with_editor_env_var assert_empty err assert_match("path: #{__FILE__}", out) assert_match("command: ': code2'", out) - - ENV["VISUAL"] = original_visual end end end