Sha256: 2bbbbf523ec99da7c579f83dd885af380db0b3028439af3042169115eb427156
Contents?: true
Size: 733 Bytes
Versions: 2
Compression:
Stored size: 733 Bytes
Contents
#!/usr/bin/env ruby #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. # See LICENSE.txt for permissions. #++ require 'test/unit' require 'rubygems/cmd_manager' require 'rubygems/user_interaction' require 'test/mockgemui' class TestCheckCommand < Test::Unit::TestCase include Gem::DefaultUserInteraction def setup @cm = Gem::CommandManager.new @cmd = @cm['check'] end def test_create assert_equal "check", @cmd.command assert_equal "gem check", @cmd.program_name assert_match(/Check/, @cmd.summary) end def test_invoke_help use_ui(MockGemUi.new) do assert ! @cmd.invoke('--help') assert_match(/Usage:/, ui.output) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubygems-update-0.9.1 | test/test_check_command.rb |
rubygems-update-0.9.2 | test/test_check_command.rb |