minitest 5.27.0 → 6.0.0.a1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/minitest/unit.rb DELETED
@@ -1,42 +0,0 @@
1
- unless defined?(Minitest) then
2
- # all of this crap is just to avoid circular requires and is only
3
- # needed if a user requires "minitest/unit" directly instead of
4
- # "minitest/autorun", so we also warn
5
-
6
- from = caller.reject { |s| s =~ /rubygems/ }.join("\n ")
7
- warn "Warning: you should require 'minitest/autorun' instead."
8
- warn %(Warning: or add 'gem "minitest"' before 'require "minitest/autorun"')
9
- warn "From:\n #{from}"
10
-
11
- module Minitest # :nodoc:
12
- end
13
- MiniTest = Minitest # :nodoc: # prevents minitest.rb from requiring back to us
14
- require_relative "../minitest"
15
- end
16
-
17
- MiniTest = Minitest unless defined?(MiniTest)
18
-
19
- module Minitest
20
- class Unit # :nodoc:
21
- VERSION = Minitest::VERSION
22
- class TestCase < Minitest::Test # :nodoc:
23
- def self.inherited klass # :nodoc:
24
- from = caller.first
25
- warn "MiniTest::Unit::TestCase is now Minitest::Test. From #{from}"
26
- super
27
- end
28
- end
29
-
30
- def self.autorun # :nodoc:
31
- from = caller.first
32
- warn "MiniTest::Unit.autorun is now Minitest.autorun. From #{from}"
33
- Minitest.autorun
34
- end
35
-
36
- def self.after_tests &b # :nodoc:
37
- from = caller.first
38
- warn "MiniTest::Unit.after_tests is now Minitest.after_run. From #{from}"
39
- Minitest.after_run(&b)
40
- end
41
- end
42
- end