Permalink
Browse files

Merge pull request #6004 from lest/patch-1

remove calls to deprecated find(:first) in actionpack test suite
  • Loading branch information...
2 parents 8b0489c + 67e8004 commit 770c809db4dd9039244abe27ebd247620e1e4911 @jonleighton jonleighton committed Apr 26, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/test/activerecord/render_partial_with_record_identification_test.rb
View
4 actionpack/test/activerecord/render_partial_with_record_identification_test.rb
@@ -16,7 +16,7 @@ def render_with_scope
end
def render_with_has_many_through_association
- @developer = Developer.find(:first)
+ @developer = Developer.first
render :partial => @developer.topics
end
@@ -31,7 +31,7 @@ def render_with_belongs_to_association
end
def render_with_record
- @developer = Developer.find(:first)
+ @developer = Developer.first
render :partial => @developer
end

0 comments on commit 770c809

Please sign in to comment.