<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -18,6 +18,37 @@ class IntegrationTest &lt; Test::Unit::TestCase
     end
   end
 
+  context &quot;An attachment&quot; do
+    setup do
+      rebuild_model :styles =&gt; { :thumb =&gt; &quot;50x50#&quot; }
+      @dummy = Dummy.new
+      @file = File.new(File.join(File.dirname(__FILE__),
+                                 &quot;fixtures&quot;,
+                                 &quot;5k.png&quot;))
+      @dummy.avatar = @file
+      assert @dummy.save
+    end
+
+    should &quot;create its thumbnails properly&quot; do
+      assert_match /\b50x50\b/, `identify '#{@dummy.avatar.path(:thumb)}'`
+    end
+
+    context &quot;redefining its attachment styles&quot; do
+      setup do
+        Dummy.class_eval do
+          has_attached_file :avatar, :styles =&gt; { :thumb =&gt; &quot;150x25#&quot; }
+        end
+        @d2 = Dummy.find(@dummy.id)
+        @d2.avatar.reprocess!
+        @d2.save
+      end
+
+      should &quot;create its thumbnails properly&quot; do
+        assert_match /\b150x25\b/, `identify '#{@dummy.avatar.path(:thumb)}'`
+      end
+    end
+  end
+
   context &quot;A model with no attachment validation&quot; do
     setup do
       rebuild_model :styles =&gt; { :large =&gt; &quot;300x300&gt;&quot;,</diff>
      <filename>test/test_integration.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4e9acd69ef832d42df7d921b00843182d8883fc4</id>
    </parent>
  </parents>
  <author>
    <name>Jon Yurek</name>
    <email>jyurek@thoughtbot.com</email>
  </author>
  <url>http://github.com/thoughtbot/paperclip/commit/25628d1307be31ae78d2e76f7f8e07425c6524f5</url>
  <id>25628d1307be31ae78d2e76f7f8e07425c6524f5</id>
  <committed-date>2008-05-13T10:50:35-07:00</committed-date>
  <authored-date>2008-05-13T10:50:35-07:00</authored-date>
  <message>Added a test for reprocess\!</message>
  <tree>b2f1b27d31c77f44b60eca9888eee8cd62774eed</tree>
  <committer>
    <name>Jon Yurek</name>
    <email>jyurek@thoughtbot.com</email>
  </committer>
</commit>
