diff options
author | Sergey Nartimov <just.lest@gmail.com> | 2012-04-26 21:50:35 +0300 |
---|---|---|
committer | Sergey Nartimov <just.lest@gmail.com> | 2012-04-26 21:50:35 +0300 |
commit | 67e8004ffd295896390e7f260db14924451c538f (patch) | |
tree | c09b52cf294530ba210db411927659add381043f /actionpack | |
parent | 8b0489cc9a28fa5d22e6c92df7e2294b4800048a (diff) | |
download | rails-67e8004ffd295896390e7f260db14924451c538f.tar.gz rails-67e8004ffd295896390e7f260db14924451c538f.tar.bz2 rails-67e8004ffd295896390e7f260db14924451c538f.zip |
remove calls to deprecated find(:first) in actionpack test suite
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/activerecord/render_partial_with_record_identification_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/activerecord/render_partial_with_record_identification_test.rb b/actionpack/test/activerecord/render_partial_with_record_identification_test.rb index 8187eb72d5..409370104d 100644 --- a/actionpack/test/activerecord/render_partial_with_record_identification_test.rb +++ b/actionpack/test/activerecord/render_partial_with_record_identification_test.rb @@ -16,7 +16,7 @@ class RenderPartialWithRecordIdentificationController < ActionController::Base end def render_with_has_many_through_association - @developer = Developer.find(:first) + @developer = Developer.first render :partial => @developer.topics end @@ -31,7 +31,7 @@ class RenderPartialWithRecordIdentificationController < ActionController::Base end def render_with_record - @developer = Developer.find(:first) + @developer = Developer.first render :partial => @developer end |