summaryrefslogtreecommitdiff
path: root/spec/support/path.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/path.rb')
-rw-r--r--spec/support/path.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/support/path.rb b/spec/support/path.rb
index 14c1514291..061385168f 100644
--- a/spec/support/path.rb
+++ b/spec/support/path.rb
@@ -38,7 +38,14 @@ module Spec
end
def tmp(*path)
- root.join("tmp", *path)
+ root.join("tmp", scope, *path)
+ end
+
+ def scope
+ test_number = ENV["TEST_ENV_NUMBER"]
+ return "1" if test_number.nil?
+
+ test_number.empty? ? "1" : test_number
end
def home(*path)