Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #7981: include_missing_fixtures.diff

File include_missing_fixtures.diff, 1.4 kB (added by roderickvd, 2 years ago)
  • activerecord/test/associations_test.rb

    old new  
    1313require 'fixtures/tag' 
    1414require 'fixtures/tagging' 
    1515 
    16  
    1716class AssociationsTest < Test::Unit::TestCase 
    1817  fixtures :accounts, :companies, :developers, :projects, :developers_projects, 
    1918           :computers 
     
    10291028 
    10301029class BelongsToAssociationsTest < Test::Unit::TestCase 
    10311030  fixtures :accounts, :companies, :developers, :projects, :topics, 
    1032            :developers_projects, :computers, :authors, :posts 
     1031           :developers_projects, :computers, :authors, :posts, :tags, :taggings 
    10331032   
    10341033  def test_belongs_to 
    10351034    Client.find(3).firm.name 
  • activerecord/test/finder_test.rb

    old new  
    77require 'fixtures/post' 
    88 
    99class FinderTest < Test::Unit::TestCase 
    10   fixtures :companies, :topics, :entrants, :developers, :developers_projects, :posts, :accounts 
     10  fixtures :companies, :topics, :entrants, :developers, :developers_projects, :posts, :comments, :accounts 
    1111 
    1212  def test_find 
    1313    assert_equal(topics(:first).title, Topic.find(1).title)