spec/lib/gummi/repository_layer/repository_spec.rb in gummi-0.3.0 vs spec/lib/gummi/repository_layer/repository_spec.rb in gummi-0.3.1
- old
+ new
@@ -55,10 +55,10 @@
it 'finds the correct documents' do
result = people.search do |search|
search.query_string = 'Woody'
search.facets[:names] = { terms: { field: :name, all_terms: true, size: 100 } }
end
- result.total.should == 1
+ result.total_entries.should == 1
result.facets.names.woody.should == 1
result.records.first.name.should == 'Woody'
end
it 'converts the result to entities' do
\ No newline at end of file