summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-02-13 23:55:55 +1100
committerAndre Arko <andre@arko.net>2015-02-13 23:56:09 +1100
commitae163a7588ac04bbcf8cea3179309d15587acb16 (patch)
tree25224c051e77feb60b138a673277e8c92063594b /spec
parent7c5ad266a26fb647c32d575bcbe18d4bc482ee4e (diff)
downloadbundler-ae163a7588ac04bbcf8cea3179309d15587acb16.tar.gz
update parallel spec for older rubygems
Diffstat (limited to 'spec')
-rw-r--r--spec/realworld/parallel_spec.rb21
1 files changed, 18 insertions, 3 deletions
diff --git a/spec/realworld/parallel_spec.rb b/spec/realworld/parallel_spec.rb
index 5fc3dd1ecf..d447786158 100644
--- a/spec/realworld/parallel_spec.rb
+++ b/spec/realworld/parallel_spec.rb
@@ -10,7 +10,12 @@ describe "parallel", :realworld => true do
G
bundle :install, :jobs => 4, :env => {"DEBUG" => "1"}
- expect(out).to match(/[1-3]: /)
+
+ if Bundler.rubygems.provides?(">= 2.1.0")
+ expect(out).to match(/[1-3]: /)
+ else
+ expect(out).to include("is not threadsafe")
+ end
bundle "show activesupport"
expect(out).to match(/activesupport/)
@@ -30,7 +35,12 @@ describe "parallel", :realworld => true do
G
bundle :install, :jobs => 4, :env => {"DEBUG" => "1"}
- expect(out).to match(/[1-3]: /)
+
+ if Bundler.rubygems.provides?(">= 2.1.0")
+ expect(out).to match(/[1-3]: /)
+ else
+ expect(out).to include("is not threadsafe")
+ end
bundle "show activesupport"
expect(out).to match(/activesupport/)
@@ -57,7 +67,12 @@ describe "parallel", :realworld => true do
G
bundle :update, :jobs => 4, :env => {"DEBUG" => "1"}
- expect(out).to match(/[1-3]: /)
+
+ if Bundler.rubygems.provides?(">= 2.1.0")
+ expect(out).to match(/[1-3]: /)
+ else
+ expect(out).to include("is not threadsafe")
+ end
bundle "show activesupport"
expect(out).to match(/activesupport-3\.2\.\d+/)