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

Changeset 166

Show
Ignore:
Timestamp:
03/15/07 08:19:45 (1 year ago)
Author:
jk
Message:

check ferret_enabled? at index rebuild time

Files:

Legend:

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

    r140 r166  
    4747 
    4848  def test_total_hits 
    49     comments_from_ferret = Comment.find_by_contents('comment AND fixture', :num_docs => 1) 
     49    comments_from_ferret = Comment.find_by_contents('comment AND fixture', :limit => 1) 
    5050    assert_equal 1, comments_from_ferret.size 
    5151    assert_equal 2, comments_from_ferret.total_hits 
     
    5757 
    5858  def test_score 
    59     comments_from_ferret = Comment.find_by_contents('comment AND fixture', :num_docs => 1) 
     59    comments_from_ferret = Comment.find_by_contents('comment AND fixture', :limit => 1) 
    6060    assert comments_from_ferret.first.ferret_score > 0 
    6161  end 

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