diff options
author | Emilio Tagua <miloops@gmail.com> | 2009-08-03 13:59:34 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2009-08-03 13:59:34 -0300 |
commit | 31c83534d61cad2203ae57087442caedb4dbf22a (patch) | |
tree | 43f5c75abe5a3169956a47a3c5ca163aea7c0992 /activerecord/test/cases/associations | |
parent | 62296a51c80b93fedcae896a534862687c8fef94 (diff) | |
download | rails-31c83534d61cad2203ae57087442caedb4dbf22a.tar.gz rails-31c83534d61cad2203ae57087442caedb4dbf22a.tar.bz2 rails-31c83534d61cad2203ae57087442caedb4dbf22a.zip |
Don't use local vars before testing its conditional.
Diffstat (limited to 'activerecord/test/cases/associations')
-rw-r--r-- | activerecord/test/cases/associations/eager_load_nested_include_test.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/activerecord/test/cases/associations/eager_load_nested_include_test.rb b/activerecord/test/cases/associations/eager_load_nested_include_test.rb index f313a75233..e8db6d5dab 100644 --- a/activerecord/test/cases/associations/eager_load_nested_include_test.rb +++ b/activerecord/test/cases/associations/eager_load_nested_include_test.rb @@ -72,10 +72,8 @@ class EagerLoadPolyAssocsTest < ActiveRecord::TestCase ShapeExpression, NonPolyOne, NonPolyTwo].each do |c| c.delete_all end - end - def generate_test_object_graphs 1.upto(NUM_SIMPLE_OBJS) do [Circle, Square, Triangle, NonPolyOne, NonPolyTwo].map(&:create!) |