Changeset 253
- Timestamp:
- 10/21/07 08:56:34 (10 months ago)
- Files:
-
- trunk/demo/test/unit/content_test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/demo/test/unit/content_test.rb
r248 r253 175 175 content.save 176 176 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 177 187 end 178 188
