test/integration/search_test.rb in ultrasphinx-1.7 vs test/integration/search_test.rb in ultrasphinx-1.8
- old
+ new
@@ -203,12 +203,14 @@
S.new(:class_names => 'Seller', :sort_by => 'bogus', :per_page => 5).run
end
end
def test_text_facet
- # XXX Still broken on Postgres
@s = Ultrasphinx::Search.new(:facets => ['company_name']).run
- assert_equal 21, @s.facets['company_name'].size
+ assert_equal(
+ (Seller.count + 1),
+ @s.facets['company_name'].size
+ )
end
def test_numeric_facet
@user_id_count = Seller.find(:all).map(&:user_id).uniq.size
\ No newline at end of file