To edit pages or tickets please login with username/password: aaf/aaf

Changeset 253

Show
Ignore:
Timestamp:
10/21/07 08:56:34 (10 months ago)
Author:
jk
Message:

fixing #178"

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/demo/test/unit/content_test.rb

    r248 r253  
    175175    content.save 
    176176    assert_equal content, Content.find_with_ferret('"find me"').first 
     177  end 
     178 
     179  # ticket 178 
     180  def test_records_for_rebuild_works_with_includes 
     181    size = Content.count 
     182    Content.send( :with_scope, :find => { :include => :comments } ) do 
     183      Content.records_for_rebuild do |records, offset| 
     184        assert_equal size, records.size 
     185      end 
     186    end 
    177187  end 
    178188 

To edit pages or tickets please login with username/password: aaf/aaf