diff options
author | Andre Arko <andre@arko.net> | 2015-02-13 23:55:55 +1100 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2015-02-13 23:56:09 +1100 |
commit | ae163a7588ac04bbcf8cea3179309d15587acb16 (patch) | |
tree | 25224c051e77feb60b138a673277e8c92063594b /spec | |
parent | 7c5ad266a26fb647c32d575bcbe18d4bc482ee4e (diff) | |
download | bundler-ae163a7588ac04bbcf8cea3179309d15587acb16.tar.gz |
update parallel spec for older rubygems
Diffstat (limited to 'spec')
-rw-r--r-- | spec/realworld/parallel_spec.rb | 21 |
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+/) |