1
require 'abstract_unit'
3
class DeprecatedBaseMethodsTest < ActionController::TestCase
4
class Target < ActionController::Base
6
"http://example.com/#{greeting}"
10
this_method_doesnt_exist
13
def rescue_action(e) raise e end
18
def test_log_error_silences_deprecation_warnings
19
get :raises_name_error
21
assert_not_deprecated { @controller.send :log_error, e }
24
if defined? Test::Unit::Error
25
def test_assertion_failed_error_silences_deprecation_warnings
26
get :raises_name_error
28
error = Test::Unit::Error.new('testing ur doodz', e)
29
assert_not_deprecated { error.message }