<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff></diff>
      <filename>lib/strokedb/config.rb</filename>
    </modified>
    <modified>
      <diff>@@ -13,9 +13,8 @@ describe &quot;Config&quot; do
     ::StrokeDB.default_config.should == @config
   end
   
-  it &quot;should have no storages or indexes on creation&quot; do
+  it &quot;should have no storages on creation&quot; do
     @config.storages.should be_empty
-    @config.indexes.should be_empty
   end
   
   it &quot;should add known storages without specific parameters&quot; do
@@ -67,19 +66,6 @@ describe &quot;Config&quot; do
     @config.storages[:fs].should_not have_chained_storage(@config.storages[:mem3])
   end
 
-  it &quot;should add an index&quot; do
-    @paths &lt;&lt; (@root_path + &quot;file_storage_index&quot;)
-    @config.add_storage :fs, :file, :path =&gt; @paths.last
-    @paths &lt;&lt; (@root_path + &quot;inverted_list_file_index&quot;)
-    @config.add_storage :idx_st, :inverted_list_file, :path =&gt; @paths.last
-    @config.add_index :idx, :inverted_list, :idx_st
-    @config.indexes[:idx].should be_an_instance_of(InvertedListIndex)
-  end
-
-  it &quot;should raise the correct exception when adding an unknown index&quot; do
-    lambda { @config.add_index :unknown, :unknown_index_type, :idx_st }.should raise_error(StrokeDB::UnknownIndexTypeError)
-  end
-
   it &quot;should add a store&quot; do
     @paths &lt;&lt; (@root_path + &quot;file_storage&quot;)
     @config.add_storage :fs, :file, :path =&gt; @paths.last
@@ -88,15 +74,11 @@ describe &quot;Config&quot; do
     @config.stores[:store].storage.should == @config.storages[:fs]
   end
   
-  it &quot;should add a default store with default index&quot; do
+  it &quot;should add a default store&quot; do
     @paths &lt;&lt; (@root_path + &quot;file_storage_default_index&quot;)
     @config.add_storage :fs, :file, :path =&gt; @paths.last
-    @paths &lt;&lt; (@root_path + &quot;inverted_list_file_default_index&quot;)
-    @config.add_storage :index_storage, :inverted_list_file, :path =&gt; @paths.last
-    @config.add_index :default, :inverted_list, :index_storage
     @config.add_store :default, nil, :storage =&gt; :fs, :cut_level =&gt; 4, :path =&gt; @paths.last
     @config.stores[:default].should be_an_instance_of(Store)
-    @config.indexes[:default].document_store.should == @config.stores[:default]
   end
 
   after(:each) do
@@ -191,38 +173,6 @@ describe &quot;Config builder&quot; do
     config.storages[:chunk_3].authoritative_source.should be_nil
   end
   
-  it &quot;should use InvertedListIndex by default&quot; do
-    config = StrokeDB::Config.build :base_path =&gt; @base_path
-    config.indexes[:default].should be_a_kind_of(InvertedListIndex)
-  end
-
-  it &quot;should use specific index if told so by default&quot; do
-    StrokeDB.send!(:remove_const,'SomeFunnyIndex') if defined?(SomeFunnyIndex)
-    StrokeDB::SomeFunnyIndex = Class.new(InvertedListIndex)
-    config = StrokeDB::Config.build :index =&gt; :some_funny, :base_path =&gt; @base_path
-    config.indexes[:default].should be_a_kind_of(SomeFunnyIndex)
-  end
-
-  it &quot;should use InvertedListFileStorage index storage by default&quot; do
-    config = StrokeDB::Config.build :base_path =&gt; @base_path
-    config.storages[:inverted_list_file].should be_a_kind_of(InvertedListFileStorage)
-  end
-
-  it &quot;should use specific index storage if told so&quot; do
-    StrokeDB.send!(:remove_const,'SomeFunnyIndexStorage') if defined?(SomeFunnyIndexStorage)
-    StrokeDB::SomeFunnyIndexStorage = Class.new(InvertedListFileStorage)
-    config = StrokeDB::Config.build :index_storages =&gt; [:some_funny_index], :base_path =&gt; @base_path
-    config.storages[:some_funny_index].should be_a_kind_of(SomeFunnyIndexStorage)
-  end
-
-  it &quot;should initialize index storage with base_path+storage_name&quot; do
-    StrokeDB.send!(:remove_const,'SomeFunnyIndexStorage') if defined?(SomeFunnyIndexStorage)
-    StrokeDB::SomeFunnyIndexStorage = Class.new(InvertedListFileStorage)
-    index_storage = StrokeDB::SomeFunnyIndexStorage.new(:path =&gt; @base_path + '/some_funny_index')
-    SomeFunnyIndexStorage.should_receive(:new).with(:path =&gt; @base_path + '/some_funny_index').and_return(index_storage)
-    config = StrokeDB::Config.build :index_storages =&gt; [:some_funny_index], :base_path =&gt; @base_path
-  end
-
   it &quot;should dump config in base_path (except 'default' key)&quot; do
     cfg = StrokeDB::Config.build :default =&gt; true, :base_path =&gt; @base_path
     config = JSON.parse(IO.read(@base_path + '/config'))</diff>
      <filename>spec/lib/strokedb/config_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>962b10f4784610cbdbd6e408ec98b7a84051fa16</id>
    </parent>
  </parents>
  <author>
    <name>Oleg Andreev</name>
    <email>oleganza@idbns.com</email>
  </author>
  <url>http://github.com/yrashk/strokedb/commit/9db532176ee4f6c1f0451529faac869a4284ed5c</url>
  <id>9db532176ee4f6c1f0451529faac869a4284ed5c</id>
  <committed-date>2008-06-08T12:16:56-07:00</committed-date>
  <authored-date>2008-06-08T12:16:56-07:00</authored-date>
  <message>removed some index-related stuff</message>
  <tree>7a9241d89eadd17092710dd9c9f85b2d9b01ef8e</tree>
  <committer>
    <name>Oleg Andreev</name>
    <email>oleganza@idbns.com</email>
  </committer>
</commit>
