<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>test/rails_root/db/migrate/010_add_zip_to_addresses.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,7 @@
 class Address &lt; ActiveRecord::Base
   belongs_to :addressable, :polymorphic =&gt; true
   validates_uniqueness_of :title, :scope =&gt; [:addressable_type, :addressable_id]
+  
+  validates_length_of :zip, :minimum =&gt; 5
+  validates_numericality_of :zip  
 end</diff>
      <filename>test/rails_root/app/models/address.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,4 +4,8 @@ class AddressTest &lt; Test::Unit::TestCase
   load_all_fixtures
   should_belong_to :addressable
   should_require_unique_attributes :title, :scoped_to =&gt; [:addressable_id, :addressable_type]
+  
+  
+  should_ensure_length_at_least :zip, 5
+  should_only_allow_numeric_values_for :zip  
 end</diff>
      <filename>test/unit/address_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5aed59248b6292be6dba3a928db5f73b24ae1213</id>
    </parent>
  </parents>
  <author>
    <name>Chris O'Sullivan</name>
    <email>thechrisoshow@gmail.com</email>
  </author>
  <url>http://github.com/thechrisoshow/shoulda/commit/2f428d81d77853277e0733be1a2425853ca026a4</url>
  <id>2f428d81d77853277e0733be1a2425853ca026a4</id>
  <committed-date>2008-07-01T02:56:51-07:00</committed-date>
  <authored-date>2008-07-01T02:56:51-07:00</authored-date>
  <message>Adds failing test for detecting bug in should_ensure_length_at_least</message>
  <tree>a1ca61c94da6946a41da0313cd7eff23ad558153</tree>
  <committer>
    <name>Chris O'Sullivan</name>
    <email>thechrisoshow@gmail.com</email>
  </committer>
</commit>
