summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)