Permalink
Browse files

remove calls to deprecated find(:first) in actionpack test suite

  • Loading branch information...
1 parent 8b0489c commit 67e8004ffd295896390e7f260db14924451c538f @lest lest committed Apr 26, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 67e8004

Please sign in to comment.