public
Description: StrokeDB is an embeddable distributed document database written in Ruby
Homepage: http://strokedb.com/
Clone URL: git://github.com/yrashk/strokedb.git
fixed specs for Store (one invalid, two are hotfixed: we should revisit these)
oleganza (author)
Sat Jun 07 09:47:42 -0700 2008
commit  8427e9bcab2a06e6dd3117422d394c1912b09fd0
tree    086fe029fd9cf3ce163835cd9fb5d31b678e228c
parent  2d239726daba2e2e76bd16c445df4177539a3935
...
45
46
47
 
48
49
50
...
111
112
113
114
 
115
116
117
...
125
126
127
128
 
129
130
131
...
45
46
47
48
49
50
51
...
112
113
114
 
115
116
117
118
...
126
127
128
 
129
130
131
132
0
@@ -45,6 +45,7 @@ describe "New store" do
0
   end
0
 
0
   it "should have 0 timestamp" do
0
+    pending "Invalid spec: reconsider requirements (store can have several meta/view docs saved on init)"
0
     @store.timestamp.should == LTS.zero(@store.uuid)
0
   end
0
 
0
@@ -111,7 +112,7 @@ describe "Non-empty store" do
0
     @store.each do |doc|
0
       iterated_documents << doc
0
     end
0
-    iterated_documents.sort_by {|doc| doc.uuid}.should == @documents.sort_by {|doc| doc.uuid}
0
+    iterated_documents.delete_if{|doc| !doc[:stuff] }.sort_by {|doc| doc.uuid}.should == @documents.sort_by {|doc| doc.uuid}
0
   end
0
 
0
   it "should iterate over all stored documents and their versions if told so" do
0
@@ -125,7 +126,7 @@ describe "Non-empty store" do
0
         documents_with_versions << vd
0
       end
0
     end
0
-    iterated_documents.sort_by {|doc| doc.uuid}.should == documents_with_versions.sort_by {|doc| doc.uuid}
0
+    iterated_documents.delete_if{|doc| !doc[:stuff] }.sort_by {|doc| doc.uuid}.should == documents_with_versions.sort_by {|doc| doc.uuid}
0
   end
0
 
0
   it "should iterate over all newly stored documents if told so" do

Comments