Changeset 227
- Timestamp:
- 08/27/07 19:12:04 (1 year ago)
- Files:
-
- trunk/demo/test/unit/comment_test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/demo/test/unit/comment_test.rb
r223 r227 233 233 end 234 234 235 def test_pagination_with_more_conditions 236 more_contents 237 238 r = Content.find_with_ferret 'title -description:0', { :page => 1, :per_page => 10 }, 239 { :conditions => "description != '9'", :order => 'title ASC' } 240 assert_equal 28, r.total_hits 241 assert_equal 10, r.size 242 assert_equal "1", r.first.description 243 assert_equal "11", r.last.description 244 assert_equal 1, r.current_page 245 assert_equal 3, r.page_count 246 end 247 235 248 protected 236 249 def more_contents
