Sha256: 4b3e7bf3adf43e399e527e81875943c9efafc6197b60440d7cd0f1bd1a380a0b
Contents?: true
Size: 1.06 KB
Versions: 14
Compression:
Stored size: 1.06 KB
Contents
require "spec_helper" describe ".bundle/config" do before :each do gemfile <<-G source "file://#{gem_repo1}" gem "rack", "1.0.0" G end it "can be moved with an environment variable" do ENV['BUNDLE_APP_CONFIG'] = tmp('foo/bar').to_s bundle "install vendor" bundled_app('.bundle').should_not exist tmp('foo/bar/config').should exist should_be_installed "rack 1.0.0" end it "can provide a relative path with the environment variable" do FileUtils.mkdir_p bundled_app('omg') Dir.chdir bundled_app('omg') ENV['BUNDLE_APP_CONFIG'] = "../foo" bundle "install vendor" bundled_app(".bundle").should_not exist bundled_app("../foo/config").should exist should_be_installed "rack 1.0.0" end it "removes environment.rb from BUNDLE_APP_CONFIG's path" do FileUtils.mkdir_p(tmp('foo/bar')) ENV['BUNDLE_APP_CONFIG'] = tmp('foo/bar').to_s bundle "install" FileUtils.touch tmp('foo/bar/environment.rb') should_be_installed "rack 1.0.0" tmp('foo/bar/environment.rb').should_not exist end end
Version data entries
14 entries across 14 versions & 3 rubygems