diff options
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/parallel.rb | 5 | ||||
-rw-r--r-- | spec/support/path.rb | 9 | ||||
-rw-r--r-- | spec/support/rubygems_ext.rb | 1 |
3 files changed, 14 insertions, 1 deletions
diff --git a/spec/support/parallel.rb b/spec/support/parallel.rb new file mode 100644 index 0000000000..8763cb9ec4 --- /dev/null +++ b/spec/support/parallel.rb @@ -0,0 +1,5 @@ +# frozen_string_literal: true + +RSpec.configure do |config| + config.silence_filter_announcements = true +end 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) diff --git a/spec/support/rubygems_ext.rb b/spec/support/rubygems_ext.rb index aa04c3d00e..faa474a917 100644 --- a/spec/support/rubygems_ext.rb +++ b/spec/support/rubygems_ext.rb @@ -8,6 +8,7 @@ module Spec module Rubygems DEV_DEPS = { "automatiek" => "~> 0.2.0", + "parallel_tests" => "~> 2.29", "rake" => "~> 12.0", "ronn" => "~> 0.7.3", "rspec" => "~> 3.8", |