| | 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 | |
|---|