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

Changeset 164

Show
Ignore:
Timestamp:
03/14/07 17:00:27 (2 years ago)
Author:
jk
Message:

sorting with Sort class fails with drb

Files:

Legend:

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

    r163 r164  
    213213  end 
    214214 
     215  # TODO: Sort usage fails with drb 
     216  #def test_sort_class 
     217  #  sorting = Ferret::Search::Sort.new(Ferret::Search::SortField.new(:id, :type => :string, :reverse => true)) 
     218  #  result = Content.find_by_contents('comment_count:2 OR comment_count:1', :sort => sorting) 
     219  #  assert result.size > 2 
     220  #  result = Content.find_by_contents('comment_count:2 OR comment_count:1', :sort => sorting, :limit => 2) 
     221  #  assert_equal 2, result.size 
     222  #  assert result.first.id > result.last.id 
     223  #end 
     224   
    215225  def test_sort_with_limit 
    216226    sorting = [ Ferret::Search::SortField.new(:id, :type => :string, :reverse => true) ] 

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