Sha256: 54c7580bb3a202fa0b80336bbc4a4ca2d2b9fb9d21e92a0325758c5eab5956fb

Contents?: true

Size: 726 Bytes

Versions: 36

Compression:

Stored size: 726 Bytes

Contents

require 'spec_helper'

describe "bundle install" do

  describe "when system_bindir is set" do
    # 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
      expect(Pathname.new("/usr/bin")).not_to be_writable unless Process::euid == 0
      gemfile <<-G
        require 'rubygems'
        def Gem.bindir; "/usr/bin"; end
        source "file://#{gem_repo1}"
        gem "rack"
      G

      config "BUNDLE_SYSTEM_BINDIR" => system_gem_path('altbin').to_s
      bundle :install
      should_be_installed "rack 1.0.0"
      expect(system_gem_path("altbin/rackup")).to exist
    end
  end

end

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
bundler-1.7.15 spec/install/binstubs_spec.rb
bundler-1.7.14 spec/install/binstubs_spec.rb
bundler-1.7.13 spec/install/binstubs_spec.rb
bundler-1.7.12 spec/install/binstubs_spec.rb
bundler-1.7.11 spec/install/binstubs_spec.rb
bundler-1.7.10 spec/install/binstubs_spec.rb
bundler-1.7.9 spec/install/binstubs_spec.rb
bundler-1.7.8 spec/install/binstubs_spec.rb
bundler-1.7.7 spec/install/binstubs_spec.rb
bundler-1.7.6 spec/install/binstubs_spec.rb
bundler-1.6.9 spec/install/binstubs_spec.rb
bundler-1.7.5 spec/install/binstubs_spec.rb
bundler-1.6.8 spec/install/binstubs_spec.rb
bundler-1.7.4 spec/install/binstubs_spec.rb
bundler-1.6.7 spec/install/binstubs_spec.rb
bundler-1.7.3 spec/install/binstubs_spec.rb
bundler-1.6.6 spec/install/binstubs_spec.rb
bundler-1.7.2 spec/install/binstubs_spec.rb
bundler-1.7.1 spec/install/binstubs_spec.rb
bundler-1.7.1.pre.3 spec/install/binstubs_spec.rb