Skip to content

Commit

Permalink
Improve test for layout on go_to_page
Browse files Browse the repository at this point in the history
  • Loading branch information
practicingruby committed Oct 23, 2014
1 parent ce465fa commit 2e3bcef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/document_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,15 @@ def self.format(string)
Prawn::Document.new do
start_new_page :layout => :landscape
lsize = [bounds.width, bounds.height]

[bounds.width, bounds.height].should == lsize
go_to_page 1
[bounds.width, bounds.height].should == lsize.reverse
end
end



end

describe "When setting page size" do
Expand Down

0 comments on commit 2e3bcef

Please sign in to comment.