Sha256: 50fbf53eed7d7bd7dc719faeb6c2448951479a76e8b6371fc7ff9ca7bdf06066
Contents?: true
Size: 967 Bytes
Versions: 2
Compression:
Stored size: 967 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe Indexer do it "should have at least 32MB memory allocated" do # FIXME : Sometimes erases Picolena::MetaIndexPath. WTF? Indexer.index.writer.max_buffer_memory.should > 2**25-1 FileUtils.mkpath(Picolena::MetaIndexPath) end it "should know the time it was updated" do Indexer.should respond_to(:last_update) begin Indexer.last_update.should be_kind_of(Time) rescue Indexer.last_update.should == "none" end end it "should give a boost to basename, filename and filetype in index" do index=Indexer.index index.field_infos[:basename].boost.should > 1.0 index.field_infos[:filename].boost.should > 1.0 index.field_infos[:filetype].boost.should > 1.0 end it "should use at least one thread" do Picolena::IndexingConfiguration[:threads_number].should_not be_nil Picolena::IndexingConfiguration[:threads_number].should > 0 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
picolena-0.2.0 | lib/picolena/templates/spec/models/indexer_spec.rb |
picolena-0.2.2 | lib/picolena/templates/spec/models/indexer_spec.rb |