<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -47,6 +47,15 @@ describe 'Transaction', :shared =&gt; true do
     end
     Document.find(@doc.uuid).should be_nil
   end
+  
+  it &quot;should see its own head version of the document&quot; do
+    @doc = Document.create!
+    @txn.execute do |txn|
+      @doc.update_slots! :new_version =&gt; 'yes'
+      @doc.store.head_version(@doc.uuid).should == @doc.version
+    end
+    @doc.store.head_version(@doc.uuid).should == @doc.versions.previous.version
+  end
 
   it &quot;should be able to commit transaction&quot; do
     @txn.execute do |txn|</diff>
      <filename>spec/lib/strokedb/stores/transaction_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6cc8e8998575cc28b2a4734a18e5b1765709e74f</id>
    </parent>
    <parent>
      <id>78c6023fa1c1c046a503e3854255f574d12bce98</id>
    </parent>
  </parents>
  <author>
    <name>Yurii Rashkovskii</name>
    <email>yrashk@gmail.com</email>
  </author>
  <url>http://github.com/yrashk/strokedb/commit/16921f956d4a6520cd292412c72433efefa7128e</url>
  <id>16921f956d4a6520cd292412c72433efefa7128e</id>
  <committed-date>2008-04-29T20:57:31-07:00</committed-date>
  <authored-date>2008-04-29T20:57:31-07:00</authored-date>
  <message>Merge branch 'master' into new-views</message>
  <tree>a0dd6b815f214da108b80011914f2322dacaf2f0</tree>
  <committer>
    <name>Yurii Rashkovskii</name>
    <email>yrashk@gmail.com</email>
  </committer>
</commit>
