<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -115,3 +115,18 @@ describe &quot;When setting page layout&quot; do
     page.size.should == Prawn::Document::PageGeometry::SIZES[&quot;A4&quot;].reverse
   end   
 end
+
+describe &quot;The mask() feature&quot; do
+  it &quot;should allow transactional restoration of attributes&quot; do
+    @pdf = Prawn::Document.new
+    y, line_width = @pdf.y, @pdf.line_width
+    @pdf.mask(:y, :line_width) do
+      @pdf.y = y + 1
+      @pdf.line_width = line_width + 1
+      @pdf.y.should_not == y
+      @pdf.line_width.should_not == line_width
+    end
+    @pdf.y.should == y
+    @pdf.line_width.should == line_width 
+  end
+end</diff>
      <filename>spec/document_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>55e90a1e74ec8756d36eda8418a283e3d5a9af06</id>
    </parent>
  </parents>
  <author>
    <name>Gregory Brown</name>
    <email>gregory.t.brown@gmail.com</email>
  </author>
  <url>http://github.com/sandal/prawn/commit/a86c58def3765e69a0692e8a7fb98bb106cd8c09</url>
  <id>a86c58def3765e69a0692e8a7fb98bb106cd8c09</id>
  <committed-date>2008-06-20T13:56:51-07:00</committed-date>
  <authored-date>2008-06-20T13:56:51-07:00</authored-date>
  <message>Cover masking behaviour [#30]</message>
  <tree>cadf44313be2b829df32704bf7891a2d5bf34f7e</tree>
  <committer>
    <name>Gregory Brown</name>
    <email>gregory.t.brown@gmail.com</email>
  </committer>
</commit>
