Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed specs for Store (one invalid, two are hotfixed: we should revis…

…it these)
  • Loading branch information...
commit 8427e9bcab2a06e6dd3117422d394c1912b09fd0 1 parent 2d23972
Oleg Andreev authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 spec/lib/strokedb/stores/store_spec.rb
View
5 spec/lib/strokedb/stores/store_spec.rb
@@ -45,6 +45,7 @@
end
it "should have 0 timestamp" do
+ pending "Invalid spec: reconsider requirements (store can have several meta/view docs saved on init)"
@store.timestamp.should == LTS.zero(@store.uuid)
end
@@ -111,7 +112,7 @@
@store.each do |doc|
iterated_documents << doc
end
- iterated_documents.sort_by {|doc| doc.uuid}.should == @documents.sort_by {|doc| doc.uuid}
+ iterated_documents.delete_if{|doc| !doc[:stuff] }.sort_by {|doc| doc.uuid}.should == @documents.sort_by {|doc| doc.uuid}
end
it "should iterate over all stored documents and their versions if told so" do
@@ -125,7 +126,7 @@
documents_with_versions << vd
end
end
- iterated_documents.sort_by {|doc| doc.uuid}.should == documents_with_versions.sort_by {|doc| doc.uuid}
+ iterated_documents.delete_if{|doc| !doc[:stuff] }.sort_by {|doc| doc.uuid}.should == documents_with_versions.sort_by {|doc| doc.uuid}
end
it "should iterate over all newly stored documents if told so" do
Please sign in to comment.
Something went wrong with that request. Please try again.