Sha256: 63a6537e419be4b860bf4e6b3c55cd1b80ae5729d7adee6758562c2df27ab0d6

Contents?: true

Size: 834 Bytes

Versions: 7

Compression:

Stored size: 834 Bytes

Contents

require 'test/unit'
require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
require 'rubygems/indexer'
require 'rubygems/commands/generate_index_command'

class TestGemCommandsGenerateIndexCommand < RubyGemTestCase

  def setup
    super

    @cmd = Gem::Commands::GenerateIndexCommand.new
    @cmd.options[:directory] = @gemhome
  end

  def test_execute
    use_ui @ui do
      @cmd.execute
    end

    yaml = File.join @gemhome, 'yaml'
    yaml_z = File.join @gemhome, 'yaml.Z'
    quick_index = File.join @gemhome, 'quick', 'index'
    quick_index_rz = File.join @gemhome, 'quick', 'index.rz'

    assert File.exist?(yaml), yaml
    assert File.exist?(yaml_z), yaml_z
    assert File.exist?(quick_index), quick_index
    assert File.exist?(quick_index_rz), quick_index_rz
  end

end if ''.respond_to? :to_xs

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rubygems-update-1.1.0 test/test_gem_commands_generate_index_command.rb
rubygems-update-1.0.0 test/test_gem_commands_generate_index_command.rb
rubygems-update-1.0.1 test/test_gem_commands_generate_index_command.rb
rubygems-update-0.9.5 test/test_gem_commands_generate_index_command.rb
rubygems-update-1.2.0 test/test_gem_commands_generate_index_command.rb
rubygems-update-1.3.0 test/test_gem_commands_generate_index_command.rb
rubygems-update-1.1.1 test/test_gem_commands_generate_index_command.rb