summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbinoam P. Marques Jr <abinoam@gmail.com>2017-07-05 08:10:30 -0300
committerAbinoam P. Marques Jr <abinoam@gmail.com>2017-07-07 05:31:50 -0300
commit8317fc0ea3d87ff0c23ab58e57807f5b15b52f19 (patch)
tree83c05c7fa552c3d886838c6c4ca225a675f53514
parent7684658abd10bc83a9cd1e339ea40cd98bc1df1a (diff)
downloadhighline-8317fc0ea3d87ff0c23ab58e57807f5b15b52f19.tar.gz
Rename shadowning variable
-rwxr-xr-xtest/test_highline.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_highline.rb b/test/test_highline.rb
index 8e9de38..09b402c 100755
--- a/test/test_highline.rb
+++ b/test/test_highline.rb
@@ -721,9 +721,9 @@ class TestHighLine < Minitest::Test
scoped_variable = { "junk.txt" => "20mb" }
answer = @terminal.ask("Enter a filename: ") do |q|
- q.confirm = proc do |answer|
- "Are you sure you want to overwrite #{answer} with size " \
- "of #{scoped_variable[answer]}? "
+ q.confirm = proc do |checking_answer|
+ "Are you sure you want to overwrite #{checking_answer} with size " \
+ "of #{scoped_variable[checking_answer]}? "
end
end
assert_equal("junk.txt", answer)