Permalink
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...
1 parent 3a1121a commit 433b4bcf36131130f2d0869d8fb4c71374c2a312 @Flameeyes Flameeyes committed Aug 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 433b4bc

Please sign in to comment.