Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added missing fixtures for tests which fail to run independently if r…

…un after schema reset

Signed-off-by: Michael Koziarski <michael@koziarski.com>
  • Loading branch information...
commit 3a59bf0f283d89737a5c30dac3fab55ca4d3b9ee 1 parent 946067e
@tarmo tarmo authored
View
2  activerecord/test/cases/associations/cascaded_eager_loading_test.rb
@@ -9,7 +9,7 @@
require 'models/reply'
class CascadedEagerLoadingTest < ActiveRecord::TestCase
- fixtures :authors, :mixins, :companies, :posts, :topics
+ fixtures :authors, :mixins, :companies, :posts, :topics, :accounts, :comments, :categorizations
def test_eager_association_loading_with_cascaded_two_levels
authors = Author.find(:all, :include=>{:posts=>:comments}, :order=>"authors.id")
View
2  activerecord/test/cases/associations/eager_test.rb
@@ -21,7 +21,7 @@ class EagerAssociationTest < ActiveRecord::TestCase
fixtures :posts, :comments, :authors, :categories, :categories_posts,
:companies, :accounts, :tags, :taggings, :people, :readers,
:owners, :pets, :author_favorites, :jobs, :references, :subscribers, :subscriptions, :books,
- :developers, :projects
+ :developers, :projects, :developers_projects
def test_loading_with_one_association
posts = Post.find(:all, :include => :comments)
View
2  activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
@@ -70,7 +70,7 @@ class DeveloperWithSymbolsForKeys < ActiveRecord::Base
class HasAndBelongsToManyAssociationsTest < ActiveRecord::TestCase
fixtures :accounts, :companies, :categories, :posts, :categories_posts, :developers, :projects, :developers_projects,
- :parrots, :pirates, :treasures, :price_estimates
+ :parrots, :pirates, :treasures, :price_estimates, :tags, :taggings
def test_has_and_belongs_to_many
david = Developer.find(1)
View
2  activerecord/test/cases/associations/has_many_associations_test.rb
@@ -14,7 +14,7 @@
class HasManyAssociationsTest < ActiveRecord::TestCase
fixtures :accounts, :categories, :companies, :developers, :projects,
:developers_projects, :topics, :authors, :comments, :author_addresses,
- :people, :posts
+ :people, :posts, :readers
def setup
Client.destroyed_client_ids.clear
View
2  activerecord/test/cases/base_test.rb
@@ -76,7 +76,7 @@ class TopicWithProtectedContentAndAccessibleAuthorName < ActiveRecord::Base
end
class BasicsTest < ActiveRecord::TestCase
- fixtures :topics, :companies, :developers, :projects, :computers, :accounts, :minimalistics, 'warehouse-things', :authors, :categorizations
+ fixtures :topics, :companies, :developers, :projects, :computers, :accounts, :minimalistics, 'warehouse-things', :authors, :categorizations, :categories
def test_table_exists
assert !NonExistentTable.table_exists?
View
2  activerecord/test/cases/lifecycle_test.rb
@@ -74,7 +74,7 @@ def after_find(record)
end
class LifecycleTest < ActiveRecord::TestCase
- fixtures :topics, :developers
+ fixtures :topics, :developers, :minimalistics
def test_before_destroy
original_count = Topic.count
View
2  activerecord/test/cases/method_scoping_test.rb
@@ -6,7 +6,7 @@
require 'models/category'
class MethodScopingTest < ActiveRecord::TestCase
- fixtures :developers, :projects, :comments, :posts
+ fixtures :developers, :projects, :comments, :posts, :developers_projects
def test_set_conditions
Developer.with_scope(:find => { :conditions => 'just a test...' }) do
View
2  activerecord/test/cases/query_cache_test.rb
@@ -58,7 +58,7 @@ def test_cache_does_not_wrap_string_results_in_arrays
uses_mocha 'QueryCacheExpiryTest' do
class QueryCacheExpiryTest < ActiveRecord::TestCase
- fixtures :tasks
+ fixtures :tasks, :posts, :categories, :categories_posts
def test_find
Task.connection.expects(:clear_query_cache).times(1)
Please sign in to comment.
Something went wrong with that request. Please try again.