Sha256: d286a371b13dc4bf19791a9252c568cf2ef9c6b55e61cdcdc4170089495c80d0

Contents?: true

Size: 380 Bytes

Versions: 8

Compression:

Stored size: 380 Bytes

Contents

require 'rubygems/test_case'
require 'rubygems/commands/search_command'

class TestGemCommandsSearchCommand < Gem::TestCase

  def setup
    super

    @cmd = Gem::Commands::SearchCommand.new
  end

  def test_execute
    @cmd.handle_options %w[a]

    use_ui @ui do
      @cmd.execute
    end

    assert_match %r%REMOTE GEMS%, @ui.output

    assert_empty @ui.error
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rubygems-update-2.0.3 test/rubygems/test_gem_commands_search_command.rb
rubygems-update-2.0.2 test/rubygems/test_gem_commands_search_command.rb
rubygems-update-2.0.0 test/rubygems/test_gem_commands_search_command.rb
rubygems-update-2.0.0.rc.2 test/rubygems/test_gem_commands_search_command.rb
rubygems-update-2.0.0.rc.1 test/rubygems/test_gem_commands_search_command.rb
rubygems-update-2.0.0.preview2.2 test/rubygems/test_gem_commands_search_command.rb
rubygems-update-2.0.0.preview2.1 test/rubygems/test_gem_commands_search_command.rb
rubygems-update-2.0.0.preview2 test/rubygems/test_gem_commands_search_command.rb