提交 6bab1b4d 编写于 作者: C Carlos Antonio da Silva

Merge pull request #8975 from arunagw/warning_removed_ambiguous_first_argument

Removing : warning: ambiguous first argument;
...@@ -9,25 +9,25 @@ def setup ...@@ -9,25 +9,25 @@ def setup
end end
def test_dom_id_deprecation def test_dom_id_deprecation
assert_deprecated /dom_id method will no longer be included by default in controllers/ do assert_deprecated(/dom_id method will no longer be included by default in controllers/) do
dom_id(@record) dom_id(@record)
end end
end end
def test_dom_class_deprecation def test_dom_class_deprecation
assert_deprecated /dom_class method will no longer be included by default in controllers/ do assert_deprecated(/dom_class method will no longer be included by default in controllers/) do
dom_class(@record) dom_class(@record)
end end
end end
def test_dom_id_from_module_deprecation def test_dom_id_from_module_deprecation
assert_deprecated /Calling ActionController::RecordIdentifier.dom_id is deprecated/ do assert_deprecated(/Calling ActionController::RecordIdentifier.dom_id is deprecated/) do
ActionController::RecordIdentifier.dom_id(@record) ActionController::RecordIdentifier.dom_id(@record)
end end
end end
def test_dom_class_from_module_deprecation def test_dom_class_from_module_deprecation
assert_deprecated /Calling ActionController::RecordIdentifier.dom_class is deprecated/ do assert_deprecated(/Calling ActionController::RecordIdentifier.dom_class is deprecated/) do
ActionController::RecordIdentifier.dom_class(@record) ActionController::RecordIdentifier.dom_class(@record)
end end
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册