spec/integration_spec.rb in prawn_cocktail-0.7.1 vs spec/integration_spec.rb in prawn_cocktail-0.8.1

- old
+ new

@@ -13,11 +13,11 @@ describe "#render" do it "has the right contents" do assert_equal( [ "Init works.", "Test document", "Status: success" ], - parse_strings(data) + parse_strings(data), ) end it "has the right geometry" do assert_equal expected_geometry("A4"), parse_geometry(data) @@ -31,11 +31,11 @@ end it "has the right contents" do assert_equal( [ "Init works.", "Test document", "Status: success" ], - parse_strings(data) + parse_strings(data), ) end it "has the right geometry" do assert_equal expected_geometry("A4"), parse_geometry(data) @@ -48,11 +48,11 @@ end it "inherits initializers and helpers" do assert_equal( [ "Init works.", "Sub-init works.", "Sub test document", "Status: success" ], - parse_strings(data) + parse_strings(data), ) end end end @@ -63,7 +63,7 @@ def parse_geometry(pdf_data) PDF::Inspector::Page.analyze(pdf_data).pages.first[:size] end def expected_geometry(name) - Prawn::Document::PageGeometry::SIZES[name] + PDF::Core::PageGeometry::SIZES[name] end