spec/integration_spec.rb in prawn_cocktail-0.5.3 vs spec/integration_spec.rb in prawn_cocktail-0.5.4

- old
+ new

@@ -34,10 +34,24 @@ it "has the right geometry" do assert_document_has_the_right_geometry end end + + describe "inheriting documents" do + let(:data) do + SubTestDocument.new("success").render + end + + it "inherits initializers and helpers" do + assert_equal( + [ "Init works.", "Sub-init works.", "Sub test document", "Status: success" ], + parse_strings(data) + ) + end + end end + def assert_document_has_the_right_contents assert_equal( [ "Init works.", "Test document", "Status: success" ], parse_strings(data)