diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-03-07 21:09:44 -0600 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-03-07 21:09:44 -0600 |
commit | 4c4a0094d187b89be530fc564a898bb8fac35c87 (patch) | |
tree | a09e41663522a52d16e3bac85ad9ecd62bbd0d31 | |
parent | 0b4949330e1e8ace08b66a1a830a5fec09e8cfc2 (diff) | |
download | bundler-seg-parallel-travis.tar.gz |
Handle spec:deps being called by itselfseg-parallel-travis
-rw-r--r-- | spec/support/path.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/support/path.rb b/spec/support/path.rb index 65ace0ae14..114a96f622 100644 --- a/spec/support/path.rb +++ b/spec/support/path.rb @@ -8,12 +8,15 @@ module Spec end def prefix + base = "base" prefix = ENV.fetch("RSPEC_BUNDLER_PATH_PREFIX") do if example = RSpec.current_example example.location.sub(%r{^\./}, "").gsub(File::SEPARATOR, "__").gsub(":", "__") end end - prefix || "base" + prefix || base + rescue + base end def tmp(*path) |