aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/finder_test.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-06-26 11:25:32 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-06-26 11:25:32 +0000
commit3dfa56ccfbdcaeba74273ace80cb752e6b716f87 (patch)
tree7d7dc552165c0626a07c1d1d723344381703b1c5 /activerecord/test/finder_test.rb
parentee4c834ed2339eaff5dc888e2148a15b9cdbd615 (diff)
downloadrails-3dfa56ccfbdcaeba74273ace80cb752e6b716f87.tar.gz
rails-3dfa56ccfbdcaeba74273ace80cb752e6b716f87.tar.bz2
rails-3dfa56ccfbdcaeba74273ace80cb752e6b716f87.zip
Updated all references to the old find_first and find_all to use the new style #1511 [Marcel Molina]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1520 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/finder_test.rb')
-rw-r--r--activerecord/test/finder_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/finder_test.rb b/activerecord/test/finder_test.rb
index 1ac97271eb..12330b6f7c 100644
--- a/activerecord/test/finder_test.rb
+++ b/activerecord/test/finder_test.rb
@@ -48,7 +48,7 @@ class FinderTest < Test::Unit::TestCase
def test_find_all_with_prepared_limit_and_offset
if ActiveRecord::ConnectionAdapters.const_defined? :OracleAdapter
if ActiveRecord::Base.connection.instance_of?(ActiveRecord::ConnectionAdapters::OracleAdapter)
- assert_raises(ArgumentError) { Entrant.find_all nil, "id ASC", [2, 1] }
+ assert_raises(ArgumentError) { Entrant.find(:all, :order => 'id ASC', :limit => 2, :offset => 1) }
end
else
entrants = Entrant.find(:all, :order => "id ASC", :limit => 2, :offset => 1)