summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAbinoam P. Marques Jr <abinoam@gmail.com>2017-07-07 04:53:12 -0300
committerAbinoam P. Marques Jr <abinoam@gmail.com>2017-07-07 05:31:50 -0300
commit05e5b87dac3ba623e5b23078693a3854e9dde627 (patch)
tree3ba8c7b712345a27b9f46ba817aa85cb96299925 /test
parent8317fc0ea3d87ff0c23ab58e57807f5b15b52f19 (diff)
downloadhighline-05e5b87dac3ba623e5b23078693a3854e9dde627.tar.gz
Remove unused assignment
Diffstat (limited to 'test')
-rw-r--r--test/test_menu.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/test_menu.rb b/test/test_menu.rb
index bdd8fe7..ee03e19 100644
--- a/test/test_menu.rb
+++ b/test/test_menu.rb
@@ -612,13 +612,14 @@ class TestMenu < Minitest::Test
@input << "lisp\nRuby\n"
@input.rewind
- answer = @terminal.choose do |menu|
+ # answer =
+ @terminal.choose do |menu|
menu.choice(:Perl)
menu.choice(:Python)
menu.choice(:Ruby)
menu.prompt = "What is your favorite programming language? "
end
- languages = %i[Perl Python Ruby]
+
assert_equal("1. Perl\n" \
"2. Python\n" \
"3. Ruby\n" \
@@ -632,7 +633,8 @@ class TestMenu < Minitest::Test
@input << "2\n1\n"
@input.rewind
- selected = @terminal.choose do |menu|
+ # selected =
+ @terminal.choose do |menu|
menu.responses[:ask_on_error] = "> "
menu.prompt = "> "
menu.choice :exit, "Exit cube editor"