Sha256: 13642b30aeac55cca44b437955fc610370b9a2688d0448eb47441de6bf55fc20

Contents?: true

Size: 408 Bytes

Versions: 7

Compression:

Stored size: 408 Bytes

Contents

require 'test/unit'
$:.unshift '../lib'
require 'rubygems'
Gem::manage_gems

require 'test/mockgemui'

class TestProcessCommands < Test::Unit::TestCase
  include Gem::DefaultUserInteraction

  def setup
    @cmd_manager = Gem::CommandManager.new
  end

  def test_query_command
    use_ui(MockGemUi.new) do
      @cmd_manager.process_args "query"
      assert_match /LOCAL GEMS/, ui.output
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rubygems-update-0.8.10 test/test_process_commands.rb
rubygems-update-0.8.8 test/test_process_commands.rb
rubygems-update-0.8.3 test/test_process_commands.rb
rubygems-update-0.8.6 test/test_process_commands.rb
rubygems-update-0.8.5 test/test_process_commands.rb
rubygems-update-0.8.11 test/test_process_commands.rb
rubygems-update-0.8.4 test/test_process_commands.rb