aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorGuo Xiang Tan <tgx_world@hotmail.com>2015-03-24 00:27:53 +0800
committerGuo Xiang Tan <tgx_world@hotmail.com>2015-03-24 00:27:53 +0800
commit5a973b314bde0948b451f60c7cab980f96286099 (patch)
tree547e2c2632e6961ed9dc740098ce098d159db067 /activesupport
parent550c1f095028d480e486388b43b880b8f01c48c5 (diff)
downloadrails-5a973b314bde0948b451f60c7cab980f96286099.tar.gz
rails-5a973b314bde0948b451f60c7cab980f96286099.tar.bz2
rails-5a973b314bde0948b451f60c7cab980f96286099.zip
Remove alias for `i_suck_and_my_tests_are_order_dependent`.
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/test_case.rb2
-rw-r--r--activesupport/test/test_case_test.rb11
2 files changed, 0 insertions, 13 deletions
diff --git a/activesupport/lib/active_support/test_case.rb b/activesupport/lib/active_support/test_case.rb
index 739823bd56..9a45c07e8d 100644
--- a/activesupport/lib/active_support/test_case.rb
+++ b/activesupport/lib/active_support/test_case.rb
@@ -45,8 +45,6 @@ module ActiveSupport
test_order
end
-
- alias :my_tests_are_order_dependent! :i_suck_and_my_tests_are_order_dependent!
end
alias_method :method_name, :name
diff --git a/activesupport/test/test_case_test.rb b/activesupport/test/test_case_test.rb
index 151b623171..9e6d1a91d0 100644
--- a/activesupport/test/test_case_test.rb
+++ b/activesupport/test/test_case_test.rb
@@ -205,15 +205,4 @@ class TestOrderTest < ActiveSupport::TestCase
assert_equal :random, self.class.test_order
assert_equal :random, Class.new(ActiveSupport::TestCase).test_order
end
-
- def test_i_suck_and_my_tests_are_order_dependent!
- ActiveSupport::TestCase.test_order = :random
-
- klass = Class.new(ActiveSupport::TestCase) do
- i_suck_and_my_tests_are_order_dependent!
- end
-
- assert_equal :alpha, klass.test_order
- assert_equal :random, ActiveSupport::TestCase.test_order
- end
end