Permalink
Browse files

Test fixes for windows.

git-svn-id: http://rubygems.rubyforge.org/svn/trunk@1783 3d4018f9-ac1a-0410-99e9-8a154d859a19
  • Loading branch information...
1 parent 2a657d8 commit 997587f42787854458129c2d19616d41ad1964dc drbrain committed Jun 18, 2008
@@ -372,7 +372,7 @@ def test_install_dual_repository
end
ENV['GEM_HOME'] = @gemhome
- ENV['GEM_PATH'] = [@gemhome, gemhome2].join ':'
+ ENV['GEM_PATH'] = [@gemhome, gemhome2].join File::PATH_SEPARATOR
Gem.clear_paths
Dir.chdir @tempdir do
@@ -327,8 +327,10 @@ def test_generate_bin_script_wrappers
real_exec = File.join util_gem_dir, 'bin', 'my_exec'
# fake --no-wrappers for previous install
- FileUtils.mkdir_p File.dirname(installed_exec)
- FileUtils.ln_s real_exec, installed_exec
+ unless Gem.win_platform? then
+ FileUtils.mkdir_p File.dirname(installed_exec)
+ FileUtils.ln_s real_exec, installed_exec
+ end
@installer.generate_bin
assert_equal true, File.directory?(util_inst_bindir)
@@ -401,7 +401,7 @@ def test_write_cache_user_from_scratch
assert_equal @gem_repo, user_cache_data.first
gems = user_cache_data.last.source_index.map { |_,spec| spec.full_name }
- assert_equal [@a2.full_name, @a1.full_name], gems.sort
+ assert_equal [@a1.full_name, @a2.full_name], gems.sort
user_cache_data = read_cache(@sic.latest_user_cache_file).to_a.sort
assert_equal 1, user_cache_data.length
@@ -284,7 +284,7 @@ def test_load_specs_cached
@fetcher.data["#{@gem_repo}latest_specs.#{Gem.marshal_version}"] =
' ' * Marshal.dump(@latest_specs).length
- cache_dir = File.join Gem.user_home, '.gem', 'specs', 'gems.example.com:80'
+ cache_dir = File.join Gem.user_home, '.gem', 'specs', 'gems.example.com%80'
FileUtils.mkdir_p cache_dir

0 comments on commit 997587f

Please sign in to comment.