Permalink
Browse files

restore BUNDLE_PATH inside sandbox with_clean_env block

Change-Id: I33dd15510408b53cff6ecfd2c1f2fc248ec75022
  • Loading branch information...
skaar authored and olegshaldybin committed Mar 28, 2012
1 parent 242f7e7 commit e6690a46106cfd4fdd5807e25c1c434d350536d7
Showing with 3 additions and 0 deletions.
  1. +3 −0 spec/sandbox.rb
View
@@ -54,7 +54,10 @@ def start
@sqlite_db = File.join(ASSETS_PATH, "director.db")
FileUtils.rm_rf(TESTCASE_SQLITE_DB)
+ bundle_path = ENV["BUNDLE_PATH"]
Bundler.with_clean_env do
+ ENV["BUNDLE_PATH"] = bundle_path
+
ENV.delete("GEM_HOME") # Bundler sets this as well
Dir.chdir(DIRECTOR_PATH) do
output = `BUNDLE_GEMFILE=#{DIRECTOR_PATH}/Gemfile bundle exec rake migration:run[#{DIRECTOR_CONF}] --trace`

0 comments on commit e6690a4

Please sign in to comment.