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

Changeset 177

Show
Ignore:
Timestamp:
04/02/07 12:30:52 (2 years ago)
Author:
jk
Message:

fixing #97

Files:

Legend:

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

    r169 r177  
    224224    assert result.first.id < result.last.id 
    225225  end 
     226   
     227  def test_multi_search_sorting 
     228    sorting = [ Ferret::Search::SortField.new(:id) ] 
     229     
     230    result = Content.multi_search('*:title OR *:comment', [Comment], :sort => sorting) 
     231    assert_equal result.map(&:ferret_rank), result.sort_by(&:ferret_rank).map(&:ferret_rank) 
     232  end 
    226233 
    227234  # TODO: Sort usage fails with drb 

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