Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minitest upgrade broke build #13213

Merged
merged 1 commit into from
Dec 6, 2013

Conversation

arunagw
Copy link
Member

@arunagw arunagw commented Dec 6, 2013

minitest/minitest@34760e3

This PR should fix build

@@ -9,7 +9,7 @@ module Isolation
def self.included(klass) #:nodoc:
klass.extend(Module.new {
def test_methods
ParallelEach.new super
Parallel.new super

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, but I'm not sure that's gonna work, it seems the API has changed and Parallel is now a module. Maybe we should make use of the parallelize_me! method, not sure.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh yes

@carlosantoniodasilva
Copy link
Member

/cc @tenderlove

@zmoazeni
Copy link

zmoazeni commented Dec 6, 2013

This seems to be another fix for both 1.9.3 and 2.0.0 (which wasn't broken for me). I'm not sure if it's actually running in parallel or not, but the suite passes again.

diff --git a/activesupport/lib/active_support/testing/isolation.rb b/activesupport/lib/active_support/testing/isolation.rb
index d5d31ce..18c48a7 100644
--- a/activesupport/lib/active_support/testing/isolation.rb
+++ b/activesupport/lib/active_support/testing/isolation.rb
@@ -1,5 +1,5 @@
 require 'rbconfig'
-require 'minitest/parallel_each'
+require 'minitest/parallel'

 module ActiveSupport
   module Testing

@zmoazeni
Copy link

zmoazeni commented Dec 6, 2013

Doh, ignore me. @arunagw already had that in his diff. Sorry about the noise.

tenderlove added a commit that referenced this pull request Dec 6, 2013
@tenderlove tenderlove merged commit 12544f9 into rails:master Dec 6, 2013
@arunagw arunagw deleted the aa-minitest-version-fix branch December 6, 2013 19:00
chancancode added a commit to chancancode/rails that referenced this pull request Dec 8, 2013
We made a change in rails#13213 that depends on a new file that's only in
minitest 5.1.0+, so the version should be updated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants