Skip to content

Commit

Permalink
Save the copy of ARGV
Browse files Browse the repository at this point in the history
It refers the same object and will be replaced.
  • Loading branch information
nobu authored and hsbt committed Nov 11, 2021
1 parent 18cdb03 commit 5f57f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_getoptlong.rb
Expand Up @@ -5,7 +5,7 @@ class TestGetoptLong < Test::Unit::TestCase

def verify(test_argv, expected_remaining_argv, expected_options)
# Save ARGV and replace it with a test ARGV.
argv_saved = ARGV
argv_saved = ARGV.dup
ARGV.replace(test_argv)
# Define options.
opts = GetoptLong.new(
Expand Down

0 comments on commit 5f57f47

Please sign in to comment.