summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2018-09-03 16:22:22 -0300
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2018-09-11 21:31:10 -0300
commita71d74c358e5b9df4e12904a52600d24ba1ce3eb (patch)
treeeabb7f928810e8bab39bee37636544b9fcb934e1
parent368d7594adbdf83032719011d7608545faf2d942 (diff)
downloadbundler-fix_locally_failing_spec.tar.gz
Better conditional assertionfix_locally_failing_spec
So that the spec also passes for developers under Linux.
-rw-r--r--spec/commands/exec_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/commands/exec_spec.rb b/spec/commands/exec_spec.rb
index 95c10c0a9f..492907743a 100644
--- a/spec/commands/exec_spec.rb
+++ b/spec/commands/exec_spec.rb
@@ -561,7 +561,7 @@ RSpec.describe "bundle exec" do
ex << "raise SignalException, 'SIGTERM'\n"
ex
end
- let(:expected_err) { ENV["TRAVIS"] ? "Terminated" : "" }
+ let(:expected_err) { RUBY_PLATFORM =~ /darwin/ ? "" : "Terminated" }
let(:exit_code) do
# signal mask 128 + plus signal 15 -> TERM
# this is specified by C99