diff options
author | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-07-07 04:53:12 -0300 |
---|---|---|
committer | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-07-07 05:31:50 -0300 |
commit | 05e5b87dac3ba623e5b23078693a3854e9dde627 (patch) | |
tree | 3ba8c7b712345a27b9f46ba817aa85cb96299925 /test | |
parent | 8317fc0ea3d87ff0c23ab58e57807f5b15b52f19 (diff) | |
download | highline-05e5b87dac3ba623e5b23078693a3854e9dde627.tar.gz |
Remove unused assignment
Diffstat (limited to 'test')
-rw-r--r-- | test/test_menu.rb | 8 |
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" |