aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/deprecation_test.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-01-06 13:29:22 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-01-06 13:31:39 -0300
commit3ca7fa96f7160ae67c289504d7984dcebdedbeae (patch)
treebe04fa0c1ffbdd6f2e7c970a850e33e8c712cfc7 /activesupport/test/deprecation_test.rb
parent0db93941a4b24338c04dac7b17ebddae6c0f95d4 (diff)
downloadrails-3ca7fa96f7160ae67c289504d7984dcebdedbeae.tar.gz
rails-3ca7fa96f7160ae67c289504d7984dcebdedbeae.tar.bz2
rails-3ca7fa96f7160ae67c289504d7984dcebdedbeae.zip
Remove unneeded tests
Diffstat (limited to 'activesupport/test/deprecation_test.rb')
-rw-r--r--activesupport/test/deprecation_test.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/activesupport/test/deprecation_test.rb b/activesupport/test/deprecation_test.rb
index d77a62f108..4daffb85d2 100644
--- a/activesupport/test/deprecation_test.rb
+++ b/activesupport/test/deprecation_test.rb
@@ -166,22 +166,4 @@ class DeprecationTest < ActiveSupport::TestCase
def test_deprecation_with_explicit_message
assert_deprecated(/you now need to do something extra for this one/) { @dtc.d }
end
-
- unless defined?(::MiniTest)
- def test_assertion_failed_error_doesnt_spout_deprecation_warnings
- error_class = Class.new(StandardError) do
- def message
- ActiveSupport::Deprecation.warn 'warning in error message'
- super
- end
- end
-
- raise error_class.new('hmm')
-
- rescue => e
- error = Test::Unit::Error.new('testing ur doodz', e)
- assert_not_deprecated { error.message }
- assert_nil @last_message
- end
- end
end