Commit 7e18ea3479cce70017805bad9620af09dbaf4b95

document_spec fix

Commit diff

spec/lib/strokedb/document/document_spec.rb

 
516516 Object.send!(:remove_const,'SomeMeta') if defined?(SomeMeta)
517517 SomeMeta = Meta.new
518518 @document = SomeMeta.create!
519 @document = @document.reload
519520 @document.should be_head
520521 end
521522
522523 it "should link to head meta" do
523524 Object.send!(:remove_const,'SomeMeta') if defined?(SomeMeta)
524525 SomeMeta = Meta.new(:some_slot => 1)
525 pending("#42 bug to be actually fixed [NEEDS ATTENTION!!!]") do
526 @document.meta.should be_head
527 @document.meta.should_not be_a_kind_of(VersionedDocument)
528 @document.meta.some_slot.should == 1
529 end
526 SomeMeta.document # ensure new metadoc version is saved
527 @document.meta.should be_head
528 @document.meta.should_not be_a_kind_of(VersionedDocument)
529 @document.meta.some_slot.should == 1
530530 end
531531
532532end
toggle raw diff