Permalink
Browse files

Opening class CascadedEagerLoadingTest at once.

  • Loading branch information...
1 parent 2e57b66 commit e04f2c1d42bdc11f47a0f8c82fa1766ad89b7719 @arunagw arunagw committed May 31, 2011
Showing with 3 additions and 7 deletions.
  1. +3 −7 activerecord/test/cases/associations/cascaded_eager_loading_test.rb
@@ -8,10 +8,12 @@
require 'models/topic'
require 'models/reply'
require 'models/person'
+require 'models/vertex'
+require 'models/edge'
class CascadedEagerLoadingTest < ActiveRecord::TestCase
fixtures :authors, :mixins, :companies, :posts, :topics, :accounts, :comments,
- :categorizations, :people, :categories
+ :categorizations, :people, :categories, :edges, :vertices
def test_eager_association_loading_with_cascaded_two_levels
authors = Author.find(:all, :include=>{:posts=>:comments}, :order=>"authors.id")
@@ -164,12 +166,6 @@ def test_eager_association_loading_where_first_level_returns_nil
authors[2].post_about_thinking.comments.first
end
end
-end
-
-require 'models/vertex'
-require 'models/edge'
-class CascadedEagerLoadingTest < ActiveRecord::TestCase
- fixtures :edges, :vertices
def test_eager_association_loading_with_recursive_cascading_four_levels_has_many_through
source = Vertex.find(:first, :include=>{:sinks=>{:sinks=>{:sinks=>:sinks}}}, :order => 'vertices.id')

0 comments on commit e04f2c1

Please sign in to comment.