aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/batches_test.rb
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2009-12-27 00:21:24 +0530
committerPratik Naik <pratiknaik@gmail.com>2009-12-27 00:25:00 +0530
commit83f24afd44ecd6fb6e38d5e8a6830dfca4bf5ffe (patch)
treea3908cde2eff6504b9635af2bb14ed02c185049e /activerecord/test/cases/batches_test.rb
parentf3741506981d8d4aafb28066f5a3a0509a4da846 (diff)
downloadrails-83f24afd44ecd6fb6e38d5e8a6830dfca4bf5ffe.tar.gz
rails-83f24afd44ecd6fb6e38d5e8a6830dfca4bf5ffe.tar.bz2
rails-83f24afd44ecd6fb6e38d5e8a6830dfca4bf5ffe.zip
Add new finder methods to association collection.
Diffstat (limited to 'activerecord/test/cases/batches_test.rb')
-rw-r--r--activerecord/test/cases/batches_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/batches_test.rb b/activerecord/test/cases/batches_test.rb
index 5009a90846..e417d8a803 100644
--- a/activerecord/test/cases/batches_test.rb
+++ b/activerecord/test/cases/batches_test.rb
@@ -5,7 +5,7 @@ class EachTest < ActiveRecord::TestCase
fixtures :posts
def setup
- @posts = Post.all(:order => "id asc")
+ @posts = Post.order("id asc")
@total = Post.count
end