Top Level Namespace
Defined Under Namespace
Modules: ApplicationHelper, DocumentsHelper, Enumerable, Ferret, Kernel, Picolena, PlainTextExtractorDSL, Rails, RubiGen, Spec Classes: ApplicationController, Array, D, Document, DocumentsController, File, Finder, Hash, Indexer, IndexerLogger, NilClass, Object, PlainTextExtractor, Proc, Query, String
Constant Summary collapse
- RAILS_ROOT =
Don’t change this file! Configure your app in config/environment.rb and config/environments/*.rb
"#{File.dirname(__FILE__)}/.."
Instance Method Summary collapse
Instance Method Details
#matching_document_for(query) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/picolena/templates/spec/models/finder_spec.rb', line 3 def matching_document_for(query) # Returns matching document for any given query only if # exactly one document is found. # Specs don't pass otherwise. matching_documents=Finder.new(query).matching_documents matching_documents.size.should == 1 matching_documents.first end |