rubygems/rubygems — Issue #206: Using operating_system.rb
Author: bkabrda
Created: 2011-11-01 07:02:46+00:00
State: open

Hi, we are currently trying to do some rubygems <-> Fedora integration, so we are using defaults/operating_system.rb to change some paths. This is a great functionality, but we also think that the tests should be modified to reflect this: If I change Gem.default_bindir in operating_system.rb, two tests fail:

1) Failure:
test_remove_executables_force_keep(TestGemUninstaller) [/home/bkabrda/test/rubygems/test_gem_uninstaller.rb:46]:
executable not written

2) Failure:
test_remove_executables_force_remove(TestGemUninstaller) [/home/bkabrda/test/rubygems/test_gem_uninstaller.rb:61]:
executable not written

This is caused by the fact, that the tests expect the executable to be in "File.join Gem.user_dir, 'bin', 'executable'", but they should look under Gem.bindir.