diff --git a/spec/table_spec.rb b/spec/table_spec.rb index 6ff9ce77..7ab8c547 100644 --- a/spec/table_spec.rb +++ b/spec/table_spec.rb @@ -1594,4 +1594,13 @@ end pdf.render end + + it 'creates page break with centered table' do + pdf = Prawn::Document.new + + pdf.table [['one', 'two']], position: :center + pdf.table [['three', 'four']], position: :center + pdf.render + pdf.page_count.should == 1 + end end