Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

spec: do not check for /usr/bin not to be writable when running as root.

This test would fail on default Gentoo installs as the package is
executed as root.
  • Loading branch information...
commit 433b4bcf36131130f2d0869d8fb4c71374c2a312 1 parent 3a1121a
@Flameeyes Flameeyes authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  spec/install/gems/simple_case_spec.rb
View
2  spec/install/gems/simple_case_spec.rb
@@ -796,7 +796,7 @@ def set_bundle_path(type, location)
# On OS X, Gem.bindir defaults to /usr/bin, so system_bindir is useful if
# you want to avoid sudo installs for system gems with OS X's default ruby
it "overrides Gem.bindir" do
- Pathname.new("/usr/bin").should_not be_writable
+ Pathname.new("/usr/bin").should_not be_writable unless Process::euid == 0
gemfile <<-G
require 'rubygems'
def Gem.bindir; "/usr/bin"; end
Please sign in to comment.
Something went wrong with that request. Please try again.