summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/test_getoptlong.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_getoptlong.rb b/test/test_getoptlong.rb
index 2d496e635c..0cd370b6c7 100644
--- a/test/test_getoptlong.rb
+++ b/test/test_getoptlong.rb
@@ -20,7 +20,7 @@ class TestGetoptLong < Test::Unit::TestCase
actual_options << "#{opt}: #{arg}"
end
# Save remaining test ARGV and restore original ARGV.
- actual_remaining_argv = ARGV
+ actual_remaining_argv = ARGV.dup
ARGV.replace(argv_saved)
# Assert.
assert_equal(expected_remaining_argv, actual_remaining_argv, 'ARGV')