diff options
| -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) |
