Run MiniTest tests in both 1.8 and 1.9 #21

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@jasonm
jasonm commented Oct 25, 2012

Pullreq'd upstream in Zeus burke/zeus#146

@jasonm jasonm Run MiniTest tests in both 1.8 and 1.9
* In the minitest gem (used only on Ruby 1.8),
  MiniTest::Unit.runner delegates to MiniTest::Unit.new and memoizes the
  result.  This method is not available in the Ruby 1.9 stdlib minitest,
  so we just instantiate a new MiniTest::Unit for cross-compatibility.

* In 1.8, class method MiniTest::Unit.runner:
  https://github.com/seattlerb/minitest/blob/bdbf38df3475dcc8ddd6d11ebede48cdd5f55008/lib/minitest/unit.rb#L808-815

* In 1.9, get a runner instance by constructing a new
* MiniTest::Unit:
  https://github.com/ruby/ruby/blob/v1_9_2_381/lib/minitest/unit.rb#L551-L590
  https://github.com/ruby/ruby/blob/v1_9_3_286/lib/minitest/unit.rb#L531-L883
f6a8048
@qrush
Owner
qrush commented Dec 28, 2012

I'm not interested in supporting 1.8. 🔨

@qrush qrush closed this Dec 28, 2012
@aripollak aripollak referenced this pull request in burke/zeus Feb 6, 2013
Closed

Fix running Test::Unit under Ruby 1.9.3 #253

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment