<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -45,4 +45,32 @@ describe &quot;A table's width&quot; do
 
   end
 
+  it &quot;should paginate large tables&quot; do
+    # 30 rows fit on the table with default setting, 31 exceed.
+    data = [[&quot;foo&quot;]] * 31
+    pdf = Prawn::Document.new
+
+    pdf.table data
+    pdf.page_count.should == 2
+
+    pdf.table data
+    pdf.page_count.should == 3
+  end
+
+  it &quot;should have a height of n rows + vertical padding&quot; do
+    data = [[&quot;foo&quot;],[&quot;bar&quot;],[&quot;baaaz&quot;]]
+    pdf = Prawn::Document.new
+    num_rows = data.length
+    vpad     = 4
+    
+    origin = pdf.y
+    pdf.table data, :vertical_padding =&gt; vpad
+
+    table_height = origin - pdf.y
+
+    font_height = pdf.font_metrics.font_height(12)
+
+    table_height.should be_close(num_rows*font_height + 2*vpad*num_rows + vpad, 0.001)
+  end
+
 end</diff>
      <filename>spec/table_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d2612fe2755995c3bc923bff4bf781901e2b1c32</id>
    </parent>
  </parents>
  <author>
    <name>Gregory Brown</name>
    <email>gregory.t.brown@gmail.com</email>
  </author>
  <url>http://github.com/sandal/prawn/commit/bdbe00ed23c4287d0a18907c7f8d179224b0171f</url>
  <id>bdbe00ed23c4287d0a18907c7f8d179224b0171f</id>
  <committed-date>2008-06-24T22:24:07-07:00</committed-date>
  <authored-date>2008-06-24T22:24:07-07:00</authored-date>
  <message>Pagination and height specs [#32]</message>
  <tree>a2945a97709cd34ff00d1559e0b37e54072b55cb</tree>
  <committer>
    <name>Gregory Brown</name>
    <email>gregory.t.brown@gmail.com</email>
  </committer>
</commit>
