1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

delgated => delegated

This commit is contained in:
Akshay Vishnoi 2013-11-25 14:09:44 +05:30
parent 5190f3a05c
commit 5a406ff42e

View file

@ -32,12 +32,12 @@ module ActiveRecord
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 @@ module ActiveRecord
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