diff options
-rw-r--r-- | lib/rubygems/installer.rb | 6 | ||||
-rw-r--r-- | test/rubygems/installer_test_case.rb | 17 | ||||
-rw-r--r-- | test/rubygems/test_gem_commands_install_command.rb | 27 |
3 files changed, 45 insertions, 5 deletions
@@ -953,11 +953,7 @@ TEXT end def ensure_writable_dir(dir) # :nodoc: - begin - Dir.mkdir dir, *[options[:dir_mode] && 0o755].compact - rescue SystemCallError - raise unless File.directory? dir - end raise Gem::FilePermissionError.new(dir) unless File.writable? dir end @@ -221,6 +221,23 @@ class Gem::InstallerTestCase < Gem::TestCase force: force) end @@symlink_supported = nil # This is needed for Windows environment without symlink support enabled (the default @@ -1583,4 +1583,31 @@ ERROR: Possible alternatives: non_existent_with_hint assert_includes @ui.output, "A new release of RubyGems is available: 1.2.3 → 2.0.0!" end end end |