Skip to content

Commit

Permalink
Merge branch 'master' into new-views
Browse files Browse the repository at this point in the history
  • Loading branch information
yrashk committed May 1, 2008
2 parents cbdc2dd + 7e18ea3 commit 5a76991
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/lib/strokedb/document/document_spec.rb
Expand Up @@ -516,17 +516,17 @@
Object.send!(:remove_const,'SomeMeta') if defined?(SomeMeta)
SomeMeta = Meta.new
@document = SomeMeta.create!
@document = @document.reload
@document.should be_head
end

it "should link to head meta" do
Object.send!(:remove_const,'SomeMeta') if defined?(SomeMeta)
SomeMeta = Meta.new(:some_slot => 1)
pending("#42 bug to be actually fixed [NEEDS ATTENTION!!!]") do
@document.meta.should be_head
@document.meta.should_not be_a_kind_of(VersionedDocument)
@document.meta.some_slot.should == 1
end
SomeMeta.document # ensure new metadoc version is saved
@document.meta.should be_head
@document.meta.should_not be_a_kind_of(VersionedDocument)
@document.meta.some_slot.should == 1
end

end
Expand Down

0 comments on commit 5a76991

Please sign in to comment.