File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 156156 ModelWithPgSearch . create! ( :content => 'bar' )
157157
158158 results = ModelWithPgSearch . search_content ( 'foo' )
159- expect ( results . count ) . to eq 1
159+ expect ( results . count ( :all ) ) . to eq 1
160160 end
161161
162162 it "returns rows where the column contains all the terms in the query in any order" do
629629 ModelWithPgSearch . with_trigram ( accent_query ) . should_not include ( record )
630630 ModelWithPgSearch . with_trigram_and_ignoring_accents ( accent_query ) . should include ( record )
631631 ModelWithPgSearch . with_tsearch ( accent_query ) . should_not include ( record )
632- ModelWithPgSearch . with_tsearch_and_trigram ( accent_query ) . should be_empty
632+ ModelWithPgSearch . with_tsearch_and_trigram ( accent_query ) . count ( :all ) . should == 0
633633 ModelWithPgSearch . complex_search ( accent_query ) . should include ( record )
634634
635635 # matches tsearch only
You can’t perform that action at this time.
0 commit comments