* test/rubygems/test_gem_installer.rb

(TestGemInstaller#test_check_executable_overwrite_other_non_gem):
  on Windows, rubygems always generate a wrapper .bat file when
  installing a file into bin, so testing no-overwrite a wrapper file
  and a non-wrapper file is nonsence.  see [ruby-core:50388].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2012-11-30 15:11:30 +00:00
parent b688029ae8
commit a847bedb1d
2 changed files with 10 additions and 1 deletions

View File

@ -1,9 +1,18 @@
Sat Dec 1 00:08:55 2012 NAKAMURA Usaku <usa@ruby-lang.org>
* test/rubygems/test_gem_installer.rb
(TestGemInstaller#test_check_executable_overwrite_other_non_gem):
on Windows, rubygems always generate a wrapper .bat file when
installing a file into bin, so testing no-overwrite a wrapper file
and a non-wrapper file is nonsence. see [ruby-core:50388].
Fri Nov 30 23:39:58 2012 NAKAMURA Usaku <usa@ruby-lang.org> Fri Nov 30 23:39:58 2012 NAKAMURA Usaku <usa@ruby-lang.org>
* test/rubygems/test_gem_installer.rb * test/rubygems/test_gem_installer.rb
(TestGemInstaller#test_check_executable_overwrite_default_bin_dir): (TestGemInstaller#test_check_executable_overwrite_default_bin_dir):
if the executable to be overwritten was generated by rubygems, the if the executable to be overwritten was generated by rubygems, the
error messsage differs from the only copied one's. error messsage differs from the only copied one's.
see [ruby-core:50388].
Fri Nov 30 23:27:26 2012 NAKAMURA Usaku <usa@ruby-lang.org> Fri Nov 30 23:27:26 2012 NAKAMURA Usaku <usa@ruby-lang.org>

View File

@ -229,7 +229,7 @@ load Gem.bin_path('a', 'executable', version)
wrapper = File.read installed_exec wrapper = File.read installed_exec
assert_match %r|generated by RubyGems|, wrapper assert_match %r|generated by RubyGems|, wrapper
end end unless Gem.win_platform?
def test_ensure_dependency def test_ensure_dependency
quick_spec 'a' quick_spec 'a'