<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -11,10 +11,16 @@ def setup_default_store(store=nil)
     StrokeDB.stub!(:default_store).and_return(store)
     return store
   end
-  @mem_storage = StrokeDB::MemoryStorage.new
   @path = TEMP_STORAGES
   FileUtils.rm_rf @path
-  StrokeDB.stub!(:default_store).and_return(StrokeDB::Store.new(:storage =&gt; @mem_storage,:index =&gt; @index, 
+      
+  @storage = if ENV['STORAGE'].to_s.downcase == 'file'
+    StrokeDB::FileStorage.new(:path =&gt; @path + '/file_storage')
+  else
+    StrokeDB::MemoryStorage.new
+  end
+  
+  StrokeDB.stub!(:default_store).and_return(StrokeDB::Store.new(:storage =&gt; @storage,:index =&gt; @index, 
                                                                 :path =&gt; @path))
   StrokeDB.default_store
 end</diff>
      <filename>spec/spec_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>de2d95d146b88a91541bc4ff5eff99fdbfcd151f</id>
    </parent>
  </parents>
  <author>
    <name>Oleg Andreev</name>
    <email>oleganza@idbns.com</email>
  </author>
  <url>http://github.com/yrashk/strokedb/commit/72805eb5a6029a85d532c2c4d34f0e0c8139b4b8</url>
  <id>72805eb5a6029a85d532c2c4d34f0e0c8139b4b8</id>
  <committed-date>2008-05-22T13:47:49-07:00</committed-date>
  <authored-date>2008-05-22T13:47:49-07:00</authored-date>
  <message>added pereklyuchatel STORAGE=file|mem for running specs [#59 state:resolved]</message>
  <tree>1f13b211e763f0e3bd510bcbc89612ff52047b28</tree>
  <committer>
    <name>Oleg Andreev</name>
    <email>oleganza@idbns.com</email>
  </committer>
</commit>
