This is Google's cache of http://vapid.dhs.org/research/xapian-fu-1.5.0-tmp-file.txt. It is a snapshot of the page as it appeared on 26 Apr 2013 06:39:33 GMT. The current page could have changed in the meantime. Learn more
Tip: To quickly find your search term on this page, press Ctrl+F or ⌘-F (Mac) and use the find bar.

Text-only version
 
larry@underfl0w:~/xapian-fu-1.5.0/spec$ grep -n "/tmp/xapian_fu_test.db" *
facets_spec.rb:3:tmp_dir = '/tmp/xapian_fu_test.db'
xapian_db_spec.rb:8:tmp_dir = '/tmp/xapian_fu_test.db'


from xapian_db_spec.rb:

First it removes the file if it exists:


 12     FileUtils.rm_rf tmp_dir if File.exists?(tmp_dir)

Then it creates the file in /tmp if on file database is selected

 22     it "should make an on-disk database when given a :dir option" do
 23       xdb = XapianDb.new(:dir => tmp_dir, :create => true)
 24       xdb.rw

34   it "should lazily create the on-disk database when rw is used" do
 35     xdb = XapianDb.new(:dir => tmp_dir, :create => true)
 36     File.exists?(tmp_dir).should be_false
 37     xdb.rw
 38     File.exists?(tmp_dir).should be_true
 39   end