<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -20,7 +20,11 @@ module ThoughtBot # :nodoc:
     # For all of these helpers, the last parameter may be a hash of options.
     #
     module ActiveRecord
-      # Ensures that the model cannot be saved if one of the attributes listed is not present.
+      # Ensures that the model cannot be saved if one of the attributes listed is not present.  
+      #
+      # If an instance variable has been created in the setup named after the
+      # model being tested, then this method will use that.  Otherwise, it will
+      # create a new instance to test against.
       #
       # Options:
       # * &lt;tt&gt;:message&lt;/tt&gt; - value the test expects to find in &lt;tt&gt;errors.on(:attribute)&lt;/tt&gt;.
@@ -93,7 +97,6 @@ module ThoughtBot # :nodoc:
       end
 
       # Ensures that the attribute cannot be set on mass update.
-      # Requires an existing record.
       #
       #   should_protect_attributes :password, :admin_flag
       #
@@ -116,7 +119,6 @@ module ThoughtBot # :nodoc:
       end
 
       # Ensures that the attribute cannot be changed once the record has been created.
-      # Requires an existing record.
       #
       #   should_have_readonly_attributes :password, :admin_flag
       #
@@ -138,7 +140,10 @@ module ThoughtBot # :nodoc:
       end
 
       # Ensures that the attribute cannot be set to the given values
-      # Requires an existing record
+      #
+      # If an instance variable has been created in the setup named after the
+      # model being tested, then this method will use that.  Otherwise, it will
+      # create a new instance to test against.
       #
       # Options:
       # * &lt;tt&gt;:message&lt;/tt&gt; - value the test expects to find in &lt;tt&gt;errors.on(:attribute)&lt;/tt&gt;.
@@ -159,7 +164,10 @@ module ThoughtBot # :nodoc:
       end
 
       # Ensures that the attribute can be set to the given values.
-      # Requires an existing record
+      #
+      # If an instance variable has been created in the setup named after the
+      # model being tested, then this method will use that.  Otherwise, it will
+      # create a new instance to test against.
       #
       # Example:
       #   should_allow_values_for :isbn, &quot;isbn 1 2345 6789 0&quot;, &quot;ISBN 1-2345-6789-0&quot;
@@ -175,7 +183,10 @@ module ThoughtBot # :nodoc:
       end
 
       # Ensures that the length of the attribute is in the given range
-      # Requires an existing record
+      #
+      # If an instance variable has been created in the setup named after the
+      # model being tested, then this method will use that.  Otherwise, it will
+      # create a new instance to test against.
       #
       # Options:
       # * &lt;tt&gt;:short_message&lt;/tt&gt; - value the test expects to find in &lt;tt&gt;errors.on(:attribute)&lt;/tt&gt;.
@@ -224,7 +235,10 @@ module ThoughtBot # :nodoc:
       end
 
       # Ensures that the length of the attribute is at least a certain length
-      # Requires an existing record
+      #
+      # If an instance variable has been created in the setup named after the
+      # model being tested, then this method will use that.  Otherwise, it will
+      # create a new instance to test against.
       #
       # Options:
       # * &lt;tt&gt;:short_message&lt;/tt&gt; - value the test expects to find in &lt;tt&gt;errors.on(:attribute)&lt;/tt&gt;.
@@ -252,7 +266,10 @@ module ThoughtBot # :nodoc:
       end
 
       # Ensures that the length of the attribute is exactly a certain length
-      # Requires an existing record
+      #
+      # If an instance variable has been created in the setup named after the
+      # model being tested, then this method will use that.  Otherwise, it will
+      # create a new instance to test against.
       #
       # Options:
       # * &lt;tt&gt;:message&lt;/tt&gt; - value the test expects to find in &lt;tt&gt;errors.on(:attribute)&lt;/tt&gt;.
@@ -284,7 +301,10 @@ module ThoughtBot # :nodoc:
       end
 
       # Ensure that the attribute is in the range specified
-      # Requires an existing record
+      #
+      # If an instance variable has been created in the setup named after the
+      # model being tested, then this method will use that.  Otherwise, it will
+      # create a new instance to test against.
       #
       # Options:
       # * &lt;tt&gt;:low_message&lt;/tt&gt; - value the test expects to find in &lt;tt&gt;errors.on(:attribute)&lt;/tt&gt;.
@@ -326,7 +346,10 @@ module ThoughtBot # :nodoc:
       end
 
       # Ensure that the attribute is numeric
-      # Requires an existing record
+      #
+      # If an instance variable has been created in the setup named after the
+      # model being tested, then this method will use that.  Otherwise, it will
+      # create a new instance to test against.
       #
       # Options:
       # * &lt;tt&gt;:message&lt;/tt&gt; - value the test expects to find in &lt;tt&gt;errors.on(:attribute)&lt;/tt&gt;.
@@ -569,6 +592,10 @@ module ThoughtBot # :nodoc:
 
       # Ensures that the model cannot be saved if one of the attributes listed is not accepted.
       #
+      # If an instance variable has been created in the setup named after the
+      # model being tested, then this method will use that.  Otherwise, it will
+      # create a new instance to test against.
+      #
       # Options:
       # * &lt;tt&gt;:message&lt;/tt&gt; - value the test expects to find in &lt;tt&gt;errors.on(:attribute)&lt;/tt&gt;.
       #   Regexp or string.  Default = &lt;tt&gt;/must be accepted/&lt;/tt&gt;</diff>
      <filename>lib/shoulda/active_record_helpers.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2f510684f2aaf754b263e2e071944b8f003184ce</id>
    </parent>
  </parents>
  <author>
    <name>Tammer Saleh</name>
    <email>tsaleh@thoughtbot.com</email>
  </author>
  <url>http://github.com/thoughtbot/shoulda/commit/5411ccf9765ac517fb5079818e84304be2d96b94</url>
  <id>5411ccf9765ac517fb5079818e84304be2d96b94</id>
  <committed-date>2008-08-28T13:40:05-07:00</committed-date>
  <authored-date>2008-08-28T13:40:05-07:00</authored-date>
  <message>Updated the documentation.</message>
  <tree>0660b969fdcd7359335312fbe99e50ee3c4b4cb0</tree>
  <committer>
    <name>Tammer Saleh</name>
    <email>tsaleh@thoughtbot.com</email>
  </committer>
</commit>
