summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/lib/minitest/unit.rb12
-rw-r--r--test/minitest/test_minitest_unit.rb22
2 files changed, 0 insertions, 34 deletions
diff --git a/test/lib/minitest/unit.rb b/test/lib/minitest/unit.rb
index c561abe3ed..e67ca02cd8 100644
--- a/test/lib/minitest/unit.rb
+++ b/test/lib/minitest/unit.rb
@@ -1329,18 +1329,6 @@ module MiniTest
reset
##
- # Call this at the top of your tests when you absolutely
- # positively need to have ordered tests. In doing so, you're
- # admitting that you suck and your tests are weak.
-
- def self.i_suck_and_my_tests_are_order_dependent!
- class << self
- undef_method :test_order if method_defined? :test_order
- define_method :test_order do :alpha end
- end
- end
-
- ##
# Make diffs for this TestCase use #pretty_inspect so that diff
# in assert_equal can be more details. NOTE: this is much slower
# than the regular inspect but much more usable for complex
diff --git a/test/minitest/test_minitest_unit.rb b/test/minitest/test_minitest_unit.rb
index 6a01b6cfe3..61bfe25ee3 100644
--- a/test/minitest/test_minitest_unit.rb
+++ b/test/minitest/test_minitest_unit.rb
@@ -1648,28 +1648,6 @@ class TestMiniTestUnitTestCase < MiniTest::Unit::TestCase
assert_equal expected, sample_test_case.test_methods
end
- def test_i_suck_and_my_tests_are_order_dependent_bang_sets_test_order_alpha
- @assertion_count = 0
-
- shitty_test_case = Class.new MiniTest::Unit::TestCase
-
- shitty_test_case.i_suck_and_my_tests_are_order_dependent!
-
- assert_equal :alpha, shitty_test_case.test_order
- end
-
- def test_i_suck_and_my_tests_are_order_dependent_bang_does_not_warn
- @assertion_count = 0
-
- shitty_test_case = Class.new MiniTest::Unit::TestCase
-
- def shitty_test_case.test_order ; :lol end
-
- assert_silent do
- shitty_test_case.i_suck_and_my_tests_are_order_dependent!
- end
- end
-
def util_assert_triggered expected, klass = MiniTest::Assertion
e = assert_raises klass do
yield