# File test/test_params.rb, line 1679 def test_argument_radio init_arguments assert_equal('foo', @entry.args[7]) @entry.set_arg_at(7, 'bar') assert_equal('bar', @entry.args[7]) @entry.set_arg_at(7, 'foo') # allowed @entry.set_arg_at(7, 'bar') # allowed @entry.set_arg_at(7, 'baz') # allowed assert_exception(RuntimeError) { @entry.set_arg_at(7, 'quux') # not allowed } assert_exception(RuntimeError) { @entry.set_arg_at(7, nil) # not allowed } end