spec/other/exec_spec.rb in bundler-1.1.pre.1 vs spec/other/exec_spec.rb in bundler-1.1.pre.2
- old
+ new
@@ -81,10 +81,11 @@
it "should not duplicate already exec'ed RUBYOPT or PATH" do
install_gemfile <<-G
gem "rack"
G
- rubyopt = "-I#{bundler_path} -rbundler/setup"
+ rubyopt = ENV['RUBYOPT']
+ rubyopt = "-I#{bundler_path} -rbundler/setup #{rubyopt}"
bundle "exec 'echo $RUBYOPT'"
out.should have_rubyopts(rubyopt)
bundle "exec 'echo $RUBYOPT'", :env => {"RUBYOPT" => rubyopt}