<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,17 +5,17 @@ describe SearchDo::Backends::HyperEstraier do
     @backend = SearchDo::Backends::HyperEstraier.new(Story, ActiveRecord::Base.configurations[&quot;test&quot;][&quot;estraier&quot;])
   end
 
-  describe &quot;#index // there is no index&quot; do
+  describe &quot;without index&quot; do
     before do
       @backend.connection.should_receive(:search).and_return(nil)
     end
 
-    it &quot;should == []&quot; do
+    it &quot;should be empty&quot; do
       @backend.index.should == []
     end
   end
 
-  describe &quot;#add_to_index(['foo',nil]) // include nil to indexed text&quot; do
+  describe &quot;include nil to indexed text&quot; do
     it &quot;should not raise error&quot; do
       lambda{ 
         @backend.add_to_index(['foo', nil], {})
@@ -23,15 +23,23 @@ describe SearchDo::Backends::HyperEstraier do
     end
   end
 
-  describe &quot;#add_to_index([Time.local(2008,9,17)]) // include nil to indexed text&quot; do
+  describe &quot;date searching&quot; do
     before do
+      @backend.clear_index!
       @time = Time.local(2008,9,17)
       @backend.add_to_index([@time], 'db_id' =&gt; &quot;1&quot;, '@uri' =&gt; &quot;/Story/1&quot;)
     end
 
-    it &quot;should searchable with '2008-09-17T00:00:00'&quot; do
+    it &quot;should searchable with time in iso format&quot; do
       @backend.count(@time.iso8601).should &gt; 0
     end
+
+    it &quot;is ordered through dates&quot; do
+      @backend.add_to_index([], 'db_id' =&gt; &quot;1&quot;, 'read_at'=&gt;Time.now, '@uri' =&gt; &quot;/Story/1&quot;)
+      @backend.add_to_index([], 'db_id' =&gt; &quot;2&quot;, 'read_at'=&gt;Time.now+1.day, '@uri' =&gt; &quot;/Story/2&quot;)
+      @backend.add_to_index([], 'db_id' =&gt; &quot;3&quot;, 'read_at'=&gt;Time.now-1.day, '@uri' =&gt; &quot;/Story/3&quot;)
+      @backend.search_all_ids('',:order=&gt;&quot;read_at ASC&quot;).should == [3,1,2]
+    end
   end
   
   describe &quot;raw&quot; do
@@ -209,5 +217,4 @@ describe SearchDo::Backends::HyperEstraier do
       end
     end
   end
-end
-
+end
\ No newline at end of file</diff>
      <filename>spec/backends/hyper_estraier_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>16aabe90a0933b3df524983eab1e959e5a935289</id>
    </parent>
  </parents>
  <author>
    <name>grosser</name>
    <email>grosser.michael@gmail.com</email>
  </author>
  <url>http://github.com/grosser/search_do/commit/34eaaa29aac7643a51a769bcc503c58fd0c43b64</url>
  <id>34eaaa29aac7643a51a769bcc503c58fd0c43b64</id>
  <committed-date>2009-01-06T01:37:35-08:00</committed-date>
  <authored-date>2009-01-06T01:37:35-08:00</authored-date>
  <message>tested date ordering</message>
  <tree>200ba19e78ab569711214648dcacd734a8e8713f</tree>
  <committer>
    <name>grosser</name>
    <email>grosser.michael@gmail.com</email>
  </committer>
</commit>
