Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Now must use MiniTest 2.0+.

  • Loading branch information...
commit 6555b9ad2c27203453a11632a8b5b62f798bc185 1 parent 8a5aa9a
@trans trans authored
Showing with 4 additions and 30 deletions.
  1. +3 −0  History.txt
  2. +1 −1  NOTICE.txt
  3. +0 −29 lib/turn/runners/minirunner.rb
View
3  History.txt
@@ -1,3 +1,6 @@
+== 0.8.4 / 2011-11-11
+ * Now must use MiniTest 2.0+.
+
== 0.8.3 / 2011-10-10
* Merge pull request #56 from codeinvain/master
* Merge pull request #52 from markburns/patch-2
View
2  NOTICE.txt
@@ -25,7 +25,7 @@ interface with MiniTest effectively.
Copyright:: (c) Nathaniel Talbott
License:: The Ruby License
-This software is distributed under the same terms as ruby.
+This software is distributed under the same terms as Ruby.
See license/RUBY-LICENSE.txt for detiails.
View
29 lib/turn/runners/minirunner.rb
@@ -113,35 +113,6 @@ def puke(klass, meth, err)
super(klass, meth, err)
end
- # To maintain compatibility with old versions of MiniTest.
- #
- # Hey, Ryan Davis wrote this code!
- if ::MiniTest::Unit::VERSION < '2.0'
- #attr_accessor :options
-
- #
- def run(args=[])
- suites = ::MiniTest::Unit::TestCase.test_suites
- return if suites.empty?
-
- @test_count, @assertion_count = 0, 0
- sync = @@out.respond_to? :"sync=" # stupid emacs
- old_sync, @@out.sync = @@out.sync, true if sync
-
- results = _run_suites suites, :test #type
-
- @test_count = results.inject(0) { |sum, (tc, _)| sum + tc }
- @assertion_count = results.inject(0) { |sum, (_, ac)| sum + ac }
-
- @@out.sync = old_sync if sync
-
- return failures + errors if @test_count > 0 # or return nil...
- rescue Interrupt
- abort 'Interrupted'
- end
-
- end
-
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.