提交 32f3f8f1 编写于 作者: R Rafael Mendonça França

Merge pull request #14598 from rajcybage/assert_dprecated_for_as_test_case

Active support instead of ActiveSupport::Deprecation.silence we can use assert_deprecated
......@@ -33,7 +33,7 @@ def setup
end
def test_simple_accessor_declaration
ActiveSupport::Deprecation.silence do
assert_deprecated do
single_class.superclass_delegating_accessor :both
end
......@@ -48,7 +48,7 @@ def test_simple_accessor_declaration
def test_simple_accessor_declaration_with_instance_reader_false
_instance_methods = single_class.public_instance_methods
ActiveSupport::Deprecation.silence do
assert_deprecated do
single_class.superclass_delegating_accessor :no_instance_reader, :instance_reader => false
end
......@@ -60,7 +60,7 @@ def test_simple_accessor_declaration_with_instance_reader_false
end
def test_working_with_simple_attributes
ActiveSupport::Deprecation.silence do
assert_deprecated do
single_class.superclass_delegating_accessor :both
end
......@@ -79,7 +79,7 @@ def test_working_with_simple_attributes
def test_child_class_delegates_to_parent_but_can_be_overridden
parent = Class.new
ActiveSupport::Deprecation.silence do
assert_deprecated do
parent.superclass_delegating_accessor :both
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册