Permalink
Browse files

Include people and readers fixtures to fix test isolation error

  • Loading branch information...
1 parent 0c7bbc7 commit ab1e82b8f7279301e4363decdef84719f9304443 @jeremy jeremy committed Aug 26, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/associations_test.rb
@@ -27,7 +27,7 @@
class AssociationsTest < ActiveRecord::TestCase
fixtures :accounts, :companies, :developers, :projects, :developers_projects,
- :computers
+ :computers, :people, :readers
def test_include_with_order_works
assert_nothing_raised {Account.find(:first, :order => 'id', :include => :firm)}
@@ -45,7 +45,7 @@ def test_should_construct_new_finder_sql_after_create
assert_equal [], person.readers.find(:all)
person.save!
reader = Reader.create! :person => person, :post => Post.new(:title => "foo", :body => "bar")
- assert_equal [reader], person.readers.find(:all)
+ assert person.readers.find(reader.id)
end
def test_force_reload

0 comments on commit ab1e82b

Please sign in to comment.