diff options
author | Andre Arko <andre@arko.net> | 2015-01-20 22:51:56 -0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2015-01-20 22:51:56 -0800 |
commit | 8774e0062e44a45819fde6e38465f0bb2f5de36c (patch) | |
tree | 3faacb40cab055fa96d2b77f9713e33a6b2f1b61 /spec/cache | |
parent | f41a4ed9963ac66fbbcb47ff8bbf6d838e355f1b (diff) | |
download | bundler-8774e0062e44a45819fde6e38465f0bb2f5de36c.tar.gz |
don’t test exitstatus when it is unknown
apparently on some Ruby 1.8.7 installs, open3 doesn’t return an exit
status, and that includes all Travis installs of 1.8.7. :/ these tests
all pass (while checking exit status) on my machine, but they shouldn’t
fail if the Ruby on Travis isn’t able to provide exitstatuses.
Diffstat (limited to 'spec/cache')
-rw-r--r-- | spec/cache/platform_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/cache/platform_spec.rb b/spec/cache/platform_spec.rb index b79ecb08d9..6b73f90f05 100644 --- a/spec/cache/platform_spec.rb +++ b/spec/cache/platform_spec.rb @@ -36,7 +36,7 @@ describe "bundle cache with multiple platforms" do it "ensures that a succesful bundle install does not delete gems for other platforms" do bundle "install" - expect(exitstatus).to eq 0 + expect(exitstatus).to eq 0 if exitstatus expect(bundled_app("vendor/cache/rack-1.0.0.gem")).to exist expect(bundled_app("vendor/cache/activesupport-2.3.5.gem")).to exist @@ -45,7 +45,7 @@ describe "bundle cache with multiple platforms" do it "ensures that a succesful bundle update does not delete gems for other platforms" do bundle "update" - expect(exitstatus).to eq 0 + expect(exitstatus).to eq 0 if exitstatus expect(bundled_app("vendor/cache/rack-1.0.0.gem")).to exist expect(bundled_app("vendor/cache/activesupport-2.3.5.gem")).to exist |