diff options
author | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-07-01 22:13:48 -0300 |
---|---|---|
committer | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-07-01 22:13:51 -0300 |
commit | 399a18987989fdf7ddd179dcf32645cb68d17424 (patch) | |
tree | 12945a878b9ed51619629701417e36a0da35a003 /test | |
parent | 456e21c03daa3b45a745b1c044b43076192249fd (diff) | |
download | highline-399a18987989fdf7ddd179dcf32645cb68d17424.tar.gz |
Remove deprecated minitest assertion
Fix the message bellow.
DEPRECATED: Use assert_nil if expecting nil from /Users/abinoam/gh/src/highline/test/test_menu.rb:410. This will fail in Minitest 6.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_menu.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_menu.rb b/test/test_menu.rb index 514ff6b..00dfb38 100644 --- a/test/test_menu.rb +++ b/test/test_menu.rb @@ -407,7 +407,7 @@ class TestMenu < Minitest::Test menu.choice "Sample2" do "output2" end menu.choice "Sample3" do "output3" end end - assert_equal(nil, output) + assert_nil output # Shows that a menu item without a proc will be returned no matter what. output = @terminal.choose do |menu| |