test/rubygems/test_gem_command.rb in rubygems-update-2.5.2 vs test/rubygems/test_gem_command.rb in rubygems-update-2.6.0

- old
+ new

@@ -168,15 +168,19 @@ options[:help] = true end @cmd.add_option('-f', '--file FILE', 'File option') do |value, options| options[:help] = true end + @cmd.add_option('--silent', 'Silence rubygems output') do |value, options| + options[:silent] = true + end assert @cmd.handles?(['-x']) assert @cmd.handles?(['-h']) assert @cmd.handles?(['-h', 'command']) assert @cmd.handles?(['--help', 'command']) assert @cmd.handles?(['-f', 'filename']) assert @cmd.handles?(['--file=filename']) + assert @cmd.handles?(['--silent']) refute @cmd.handles?(['-z']) refute @cmd.handles?(['-f']) refute @cmd.handles?(['--toothpaste']) args = ['-h', 'command']