<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -44,3 +44,36 @@ describe &quot;A bounding box&quot; do
   end
 
 end
+
+describe &quot;drawing bounding boxes&quot; do
+
+  it &quot;should restore the margin box when bounding box exits&quot; do
+    @pdf = Prawn::Document.new
+    margin_box = @pdf.bounds
+
+    @pdf.bounding_box [100,500] do
+      #nothing
+    end
+
+    @pdf.bounds.should == margin_box
+
+  end
+
+  it &quot;should restore the parent bounding box when calls are nested&quot; do
+    @pdf = Prawn::Document.new
+    @pdf.bounding_box [100,500], :width =&gt; 300, :height =&gt; 300 do 
+
+      @pdf.bounds.absolute_top.should  == 500
+      @pdf.bounds.absolute_left.should == 100 
+
+      @pdf.bounding_box [50,200], :width =&gt; 100, :height =&gt; 100 do
+        @pdf.bounds.absolute_top.should == 200 
+        @pdf.bounds.absolute_left.should == 50
+      end
+
+      @pdf.bounds.absolute_top.should  == 500
+      @pdf.bounds.absolute_left.should == 100 
+
+    end
+  end
+end</diff>
      <filename>spec/bounding_box_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>dcfa7f8d047beb1da729cd46d60e862eb4eef189</id>
    </parent>
  </parents>
  <author>
    <name>Gregory Brown</name>
    <email>gregory.t.brown@gmail.com</email>
  </author>
  <url>http://github.com/sandal/prawn/commit/39d364d26736a2c0378d522f2928157c76cc009a</url>
  <id>39d364d26736a2c0378d522f2928157c76cc009a</id>
  <committed-date>2008-06-20T13:43:45-07:00</committed-date>
  <authored-date>2008-06-20T13:43:45-07:00</authored-date>
  <message>Test nested bounding boxes. They still use absolute positioning to define the boxes (I didn't know that) [#30]</message>
  <tree>1328de40aeee3160ea59eaf9890ddd9b269b9443</tree>
  <committer>
    <name>Gregory Brown</name>
    <email>gregory.t.brown@gmail.com</email>
  </committer>
</commit>
