aboutsummaryrefslogtreecommitdiffstats
path: root/spec/install/security_policy_spec.rb
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-01-20 22:51:56 -0800
committerAndre Arko <andre@arko.net>2015-01-20 22:51:56 -0800
commit8774e0062e44a45819fde6e38465f0bb2f5de36c (patch)
tree3faacb40cab055fa96d2b77f9713e33a6b2f1b61 /spec/install/security_policy_spec.rb
parentf41a4ed9963ac66fbbcb47ff8bbf6d838e355f1b (diff)
downloadbundler-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/install/security_policy_spec.rb')
-rw-r--r--spec/install/security_policy_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/install/security_policy_spec.rb b/spec/install/security_policy_spec.rb
index 2e4afb02..1f48cb9e 100644
--- a/spec/install/security_policy_spec.rb
+++ b/spec/install/security_policy_spec.rb
@@ -17,7 +17,7 @@ describe "policies with unsigned gems" do
it "will work after you try to deploy without a lock" do
bundle "install --deployment"
bundle :install
- expect(exitstatus).to eq(0)
+ expect(exitstatus).to eq(0) if exitstatus
should_be_installed "rack 1.0", "signed_gem 1.0"
end
@@ -39,7 +39,7 @@ describe "policies with unsigned gems" do
it "will succeed with no policy" do
bundle "install"
- expect(exitstatus).to eq(0)
+ expect(exitstatus).to eq(0) if exitstatus
end
end
@@ -65,13 +65,13 @@ describe "policies with signed gems and no CA" do
it "will succeed with Low Security setting, low security accepts self signed gem" do
bundle "install --trust-policy=LowSecurity"
- expect(exitstatus).to eq(0)
+ expect(exitstatus).to eq(0) if exitstatus
should_be_installed "signed_gem 1.0"
end
it "will succeed with no policy" do
bundle "install"
- expect(exitstatus).to eq(0)
+ expect(exitstatus).to eq(0) if exitstatus
should_be_installed "signed_gem 1.0"
end
end