提交 7ccb4821 编写于 作者: Y Yves Senn

Merge pull request #13029 from akshay-vishnoi/documentation

`delgated` => `delegated`
......@@ -32,12 +32,12 @@ def target
end
[:map, :collect].each do |method|
test "##{method} is delgated" do
test "##{method} is delegated" do
assert_responds(target, method)
assert_equal(target.pluck(:body), target.send(method) {|post| post.body })
end
test "##{method}! is not delgated" do
test "##{method}! is not delegated" do
assert_deprecated do
assert_responds(target, "#{method}!")
end
......@@ -68,12 +68,12 @@ def target
end
[:map, :collect].each do |method|
test "##{method} is delgated" do
test "##{method} is delegated" do
assert_responds(target, method)
assert_equal(target.pluck(:body), target.send(method) {|post| post.body })
end
test "##{method}! is not delgated" do
test "##{method}! is not delegated" do
assert_deprecated do
assert_responds(target, "#{method}!")
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册