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

Changeset 106

Show
Ignore:
Timestamp:
09/13/06 20:43:53 (2 years ago)
Author:
jk
Message:

r1265@monsoon: jk | 2006-09-13 22:43:46 +0200
test for total_hits method

Files:

Legend:

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

    r102 r106  
    281281  end 
    282282 
     283  def test_total_hits 
     284    assert_equal 2, Content.total_hits('title:title OR description:title') 
     285    assert_equal 2, Content.total_hits('title:title OR description:title', :limit => 1) 
     286  end 
     287 
    283288  def test_find_id_by_contents 
    284289    contents_from_ferret = Content.find_id_by_contents('title:title OR description:title') 

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