Last active
August 29, 2015 14:07
-
-
Save giuseb/62dc0bc7ef4f56c451e3 to your computer and use it in GitHub Desktop.
prawn-grouping failing spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it 'should push question #4 to the second column' do | |
pdf = Prawn::Document.new do | |
font_size 10 | |
column_box [0, cursor], columns: 2, width: bounds.width do | |
4.times do |i| | |
group do | |
text "<b>This is question ##{i+1}</b>", inline_format: true | |
move_down 10 | |
5.times do |j| | |
text "#{j+1}. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore" | |
move_down 8 | |
end | |
move_down 7 | |
end | |
end | |
end | |
end | |
pdf.render_file 'two_columns.pdf' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment