public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Added missing fixtures for tests which fail to run independently if run after 
schema reset

Signed-off-by: Michael Koziarski <michael@koziarski.com>
Tarmo Tänav (author)
Thu Jul 31 13:59:53 -0700 2008
NZKoz (committer)
Mon Aug 04 02:50:15 -0700 2008
commit  82343859d568799a4151facbde1f8c711ecb7a3f
tree    2fe191fe0b9a544ef9b50fe684f1861c8b84fe6f
parent  cb21db1a334e6ca2695d4e7183b1bdce204b9eb3
...
9
10
11
12
 
13
14
15
...
9
10
11
 
12
13
14
15
0
@@ -9,7 +9,7 @@ require 'models/topic'
0
 require 'models/reply'
0
 
0
 class CascadedEagerLoadingTest < ActiveRecord::TestCase
0
-  fixtures :authors, :mixins, :companies, :posts, :topics
0
+  fixtures :authors, :mixins, :companies, :posts, :topics, :accounts, :comments, :categorizations
0
 
0
   def test_eager_association_loading_with_cascaded_two_levels
0
     authors = Author.find(:all, :include=>{:posts=>:comments}, :order=>"authors.id")
...
21
22
23
24
 
25
26
27
...
21
22
23
 
24
25
26
27
0
@@ -21,7 +21,7 @@ class EagerAssociationTest < ActiveRecord::TestCase
0
   fixtures :posts, :comments, :authors, :categories, :categories_posts,
0
             :companies, :accounts, :tags, :taggings, :people, :readers,
0
             :owners, :pets, :author_favorites, :jobs, :references, :subscribers, :subscriptions, :books,
0
-            :developers, :projects
0
+            :developers, :projects, :developers_projects
0
 
0
   def test_loading_with_one_association
0
     posts = Post.find(:all, :include => :comments)
...
70
71
72
73
 
74
75
76
...
70
71
72
 
73
74
75
76
0
@@ -70,7 +70,7 @@ end
0
 
0
 class HasAndBelongsToManyAssociationsTest < ActiveRecord::TestCase
0
   fixtures :accounts, :companies, :categories, :posts, :categories_posts, :developers, :projects, :developers_projects,
0
-           :parrots, :pirates, :treasures, :price_estimates
0
+           :parrots, :pirates, :treasures, :price_estimates, :tags, :taggings
0
 
0
   def test_has_and_belongs_to_many
0
     david = Developer.find(1)
...
14
15
16
17
 
18
19
20
...
14
15
16
 
17
18
19
20
0
@@ -14,7 +14,7 @@ require 'models/reader'
0
 class HasManyAssociationsTest < ActiveRecord::TestCase
0
   fixtures :accounts, :categories, :companies, :developers, :projects,
0
            :developers_projects, :topics, :authors, :comments, :author_addresses,
0
-           :people, :posts
0
+           :people, :posts, :readers
0
 
0
   def setup
0
     Client.destroyed_client_ids.clear
...
76
77
78
79
 
80
81
82
...
76
77
78
 
79
80
81
82
0
@@ -76,7 +76,7 @@ class TopicWithProtectedContentAndAccessibleAuthorName < ActiveRecord::Base
0
 end
0
 
0
 class BasicsTest < ActiveRecord::TestCase
0
-  fixtures :topics, :companies, :developers, :projects, :computers, :accounts, :minimalistics, 'warehouse-things', :authors, :categorizations
0
+  fixtures :topics, :companies, :developers, :projects, :computers, :accounts, :minimalistics, 'warehouse-things', :authors, :categorizations, :categories
0
 
0
   def test_table_exists
0
     assert !NonExistentTable.table_exists?
...
74
75
76
77
 
78
79
80
...
74
75
76
 
77
78
79
80
0
@@ -74,7 +74,7 @@ class MultiObserver < ActiveRecord::Observer
0
 end
0
 
0
 class LifecycleTest < ActiveRecord::TestCase
0
-  fixtures :topics, :developers
0
+  fixtures :topics, :developers, :minimalistics
0
 
0
   def test_before_destroy
0
     original_count = Topic.count
...
6
7
8
9
 
10
11
12
...
6
7
8
 
9
10
11
12
0
@@ -6,7 +6,7 @@ require 'models/post'
0
 require 'models/category'
0
 
0
 class MethodScopingTest < ActiveRecord::TestCase
0
-  fixtures :developers, :projects, :comments, :posts
0
+  fixtures :developers, :projects, :comments, :posts, :developers_projects
0
 
0
   def test_set_conditions
0
     Developer.with_scope(:find => { :conditions => 'just a test...' }) do
...
58
59
60
61
 
62
63
64
...
58
59
60
 
61
62
63
64
0
@@ -58,7 +58,7 @@ end
0
 uses_mocha 'QueryCacheExpiryTest' do
0
 
0
 class QueryCacheExpiryTest < ActiveRecord::TestCase
0
-  fixtures :tasks
0
+  fixtures :tasks, :posts, :categories, :categories_posts
0
 
0
   def test_find
0
     Task.connection.expects(:clear_query_cache).times(1)

Comments