summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2016-10-13 17:13:25 -0700
committerAndre Arko <andre@arko.net>2016-10-13 17:13:30 -0700
commitb74caccd9d6c76d2fd99ed8c49a94820570edf9b (patch)
tree320e050f3ab8aba22b079b1ab46aadd6bf0f2732
parent2b63fe92fe36f4726505b719f6c5fdb9e767b0ae (diff)
downloadbundler-b74caccd9d6c76d2fd99ed8c49a94820570edf9b.tar.gz
ruby 1.8 can't even give exit statuses
how did this ever pass even once :astonished:
-rw-r--r--spec/runtime/with_clean_env_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/runtime/with_clean_env_spec.rb b/spec/runtime/with_clean_env_spec.rb
index 752754be39..294233a581 100644
--- a/spec/runtime/with_clean_env_spec.rb
+++ b/spec/runtime/with_clean_env_spec.rb
@@ -116,14 +116,14 @@ describe "Bundler.with_env helpers" do
end
end
- describe "Bundler.clean_system" do
+ describe "Bundler.clean_system", :ruby => ">= 1.9" do
it "runs system inside with_clean_env" do
Bundler.clean_system(%(echo 'if [ "$BUNDLE_PATH" = "" ]; then exit 42; else exit 1; fi' | /bin/sh))
expect($?.exitstatus).to eq(42)
end
end
- describe "Bundler.clean_exec" do
+ describe "Bundler.clean_exec", :ruby => ">= 1.9" do
it "runs exec inside with_clean_env" do
pid = Kernel.fork do
Bundler.clean_exec(%(echo 'if [ "$BUNDLE_PATH" = "" ]; then exit 42; else exit 1; fi' | /bin/sh))