aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorArun Agrawal <arun@fromjaipur.com>2011-05-31 12:35:37 +0530
committerArun Agrawal <arun@fromjaipur.com>2011-05-31 12:35:37 +0530
commite04f2c1d42bdc11f47a0f8c82fa1766ad89b7719 (patch)
treef88f4817c67cc7eceb3fcf878343bc468d647f17 /activerecord/test
parent2e57b66931c9aa51cf41723e3ab691a550949a96 (diff)
downloadrails-e04f2c1d42bdc11f47a0f8c82fa1766ad89b7719.tar.gz
rails-e04f2c1d42bdc11f47a0f8c82fa1766ad89b7719.tar.bz2
rails-e04f2c1d42bdc11f47a0f8c82fa1766ad89b7719.zip
Opening class CascadedEagerLoadingTest at once.
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/associations/cascaded_eager_loading_test.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/activerecord/test/cases/associations/cascaded_eager_loading_test.rb b/activerecord/test/cases/associations/cascaded_eager_loading_test.rb
index 49d8722aff..ff376a68d8 100644
--- a/activerecord/test/cases/associations/cascaded_eager_loading_test.rb
+++ b/activerecord/test/cases/associations/cascaded_eager_loading_test.rb
@@ -8,10 +8,12 @@ require 'models/company'
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 @@ class CascadedEagerLoadingTest < ActiveRecord::TestCase
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')