Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes for win32 test failures reported by Luis Lavena.

git-svn-id: http://rubygems.rubyforge.org/svn/trunk@1778 3d4018f9-ac1a-0410-99e9-8a154d859a19
  • Loading branch information...
commit 606148271cd0a3c6d065b2829819938ab03638b3 1 parent b7ff40b
drbrain authored
View
1  ChangeLog
@@ -8,6 +8,7 @@
* util/gem_prelude.rb: Prevent infinite recursion, check for Gem now.
Patch from ruby trunk by nobu.
* lib/*: Spelling cleanup. Patch from trunk by Evan Farrar.
+ * test/*: Fixes for win32 test failures reported by Luis Lavena.
2008-06-16 Eric Hodel <drbrain@segment7.net>
View
5 test/test_gem_installer.rb
@@ -130,7 +130,10 @@ def format.file_entries
thefile_path = File.join(util_gem_dir, 'thefile')
assert_equal 'thefile', File.read(thefile_path)
- assert_equal 0400, File.stat(thefile_path).mode & 0777
+
+ unless Gem.win_platform? then
+ assert_equal 0400, File.stat(thefile_path).mode & 0777
+ end
end
def test_extract_files_bad_dest
View
2  test/test_gem_spec_fetcher.rb
@@ -273,7 +273,7 @@ def test_load_specs
assert_equal expected, specs
cache_dir = File.join Gem.user_home, '.gem', 'specs', 'gems.example.com%80'
- assert File.exist?(cache_dir)
+ assert File.exist?(cache_dir), "#{cache_dir} does not exist"
cache_file = File.join cache_dir, "specs.#{Gem.marshal_version}"
assert File.exist?(cache_file)
View
2  test/test_gem_uninstaller.rb
@@ -18,7 +18,7 @@ def setup
def test_initialize_expand_path
uninstaller = Gem::Uninstaller.new nil, :install_dir => '/foo//bar'
- assert_equal '/foo/bar', uninstaller.instance_variable_get(:@gem_home)
+ assert_match %r|/foo/bar$|, uninstaller.instance_variable_get(:@gem_home)
end
def test_remove_executables_force_keep
Please sign in to comment.
Something went wrong with that request. Please try again.