mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
delgated
=> delegated
This commit is contained in:
parent
5190f3a05c
commit
5a406ff42e
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue