aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/relation_scoping_test.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-04-26 17:46:04 +0100
committerJon Leighton <j@jonathanleighton.com>2012-04-26 18:04:41 +0100
commit58663218e8025c0d7ab691228fc278bc35e092a7 (patch)
treee50a873ce77a8774bafc4cf164362bdedabd4a05 /activerecord/test/cases/relation_scoping_test.rb
parent759d302db851754a73ec4c74e951f8a5faf2bee1 (diff)
downloadrails-58663218e8025c0d7ab691228fc278bc35e092a7.tar.gz
rails-58663218e8025c0d7ab691228fc278bc35e092a7.tar.bz2
rails-58663218e8025c0d7ab691228fc278bc35e092a7.zip
remove deprecated #first calls
Diffstat (limited to 'activerecord/test/cases/relation_scoping_test.rb')
-rw-r--r--activerecord/test/cases/relation_scoping_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/relation_scoping_test.rb b/activerecord/test/cases/relation_scoping_test.rb
index 7216282892..187ff3457e 100644
--- a/activerecord/test/cases/relation_scoping_test.rb
+++ b/activerecord/test/cases/relation_scoping_test.rb
@@ -53,8 +53,8 @@ class RelationScopingTest < ActiveRecord::TestCase
end
def test_scoped_find_last_preserves_scope
- lowest_salary = Developer.first :order => "salary ASC"
- highest_salary = Developer.first :order => "salary DESC"
+ lowest_salary = Developer.order("salary ASC").first
+ highest_salary = Developer.order("salary DESC").first
Developer.order("salary").scoping do
assert_equal highest_salary, Developer.last