<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -32,6 +32,12 @@ class User &lt; ActiveRecord::Base
   end
   
   attr_accessor :password_confirmation
+  
+  attr_accessor :tmp_avatar_path
+  
+  validates_tmp_avatar_path do |tmp_avatar_path|
+    tmp_avatar_path.present
+  end
 end
 
 class ValidatesWithBlockTest &lt; Test::Unit::TestCase
@@ -47,6 +53,11 @@ class ValidatesWithBlockTest &lt; Test::Unit::TestCase
   def new_user( atts = {} )
     @user = User.new atts
   end
+  
+  def test_accessor
+    new_user
+    assert_user_errors_on :tmp_avatar_path
+  end
 
   def test_confirmed
     new_user :password =&gt; 'password', :password_confirmation =&gt; 'passworf'
@@ -71,7 +82,7 @@ class ValidatesWithBlockTest &lt; Test::Unit::TestCase
   def test_unique
     User.create(
       :birthday =&gt; Date.today, :login =&gt; 'billuser', :password =&gt; 'p',
-      :password_confirmation =&gt; 'p'
+      :password_confirmation =&gt; 'p', :tmp_avatar_path =&gt; '/some/img.jpg'
     )
     new_user :login =&gt; 'billuser'
     assert_user_errors_on :login</diff>
      <filename>test/validates_with_block_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e969bf6c279f52946d3c054272e43510e0cb5058</id>
    </parent>
  </parents>
  <author>
    <name>Francis Hwang</name>
    <email>francis@diversionmedia.com</email>
  </author>
  <url>http://github.com/fhwang/validates_with_block/commit/f8c850a19fd74381599555a4d423ff39a64f348e</url>
  <id>f8c850a19fd74381599555a4d423ff39a64f348e</id>
  <committed-date>2008-06-11T13:39:20-07:00</committed-date>
  <authored-date>2008-06-11T13:39:20-07:00</authored-date>
  <message>added a test</message>
  <tree>7d0ecdc20e4867fe2e12af6ec6b00cf2a6f36491</tree>
  <committer>
    <name>Francis Hwang</name>
    <email>francis@diversionmedia.com</email>
  </committer>
</commit>
