Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

'minitest/parallel_each' might not always be available

  • Loading branch information...
commit eba172fb76ee46d9d801a5f3e56af7b777c9a13e 1 parent 29000a7
@amatsuda amatsuda authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 activesupport/lib/active_support/testing/isolation.rb
View
5 activesupport/lib/active_support/testing/isolation.rb
@@ -1,5 +1,8 @@
require 'rbconfig'
-require 'minitest/parallel_each'
+begin
+ require 'minitest/parallel_each'
+rescue LoadError
+end
module ActiveSupport
module Testing

4 comments on commit eba172f

@zenspider

Isn't there a gem dependency on minitest? If so, it should always be available.

@amatsuda
Collaborator

Rails is depending on 'minitest', '~> 4.1' and ParallelEach was introduced after 4.1 release seattlerb/minitest@bdbf38d

Or can I bump up the dependency so we can remove the Rails version of ParallelEach here? https://github.com/rails/rails/blob/eba172fb76ee46d9d801a5f3e56af7b777c9a13e/activesupport/lib/active_support/testing/isolation.rb#L51-L82
/cc @tenderlove

@zenspider

Yeah. ~> 4.2 should be good.

Please sign in to comment.
Something went wrong with that request. Please try again.