test/test_cmdline_require.rb in getopt-declare-1.31 vs test/test_cmdline_require.rb in getopt-declare-1.32

- old
+ new

@@ -20,18 +20,19 @@ class TC_Require < Test::Unit::TestCase def setup @args = Getopt::Declare.new(<<EOF, :build) + [debug] -i <iterations:+i> iteration count -q add new task [ requires: -i ] EOF end def test_q_without_i begin @args.parse('-q') - assert_equal( nil, "Parsing of -q did not fail" ) + assert_equal( nil, @args['-q'] ) rescue end end def test_i_without_q