<?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>39d364d26736a2c0378d522f2928157c76cc009a</id>
    </parent>
  </parents>
  <author>
    <name>Gregory Brown</name>
    <email>gregory.t.brown@gmail.com</email>
  </author>
  <url>http://github.com/sandal/prawn/commit/9d0b188ccf14a1c9afe55ef9fe36125376f8bdcf</url>
  <id>9d0b188ccf14a1c9afe55ef9fe36125376f8bdcf</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>db9f401bb73049198f0246798e74ccfad137b4d0</tree>
  <committer>
    <name>Gregory Brown</name>
    <email>gregory.t.brown@gmail.com</email>
  </committer>
</commit>
