<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -105,6 +105,22 @@ module Shoulda # :nodoc:
         should_validate_uniqueness_of(*attributes)
       end
 
+      # Ensures that the attribute can be set on mass update.
+      #
+      #   should_allow_mass_assignment_of :first_name, :last_name
+      #
+      def should_allow_mass_assignment_of(*attributes)
+        get_options!(attributes)
+        klass = model_class
+
+        attributes.each do |attribute|
+          matcher = allow_mass_assignment_of(attribute)
+          should matcher.description do
+            assert_accepts matcher, klass.new
+          end
+        end
+      end
+
       # Ensures that the attribute cannot be set on mass update.
       #
       #   should_not_allow_mass_assignment_of :password, :admin_flag</diff>
      <filename>lib/shoulda/active_record/macros.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,6 +7,7 @@ class TagTest &lt; Test::Unit::TestCase
   should_ensure_length_at_least :name, 2
 
   should_protect_attributes :secret
+  should_allow_mass_assignment_of :name
 
   should_fail do
     should_not_allow_mass_assignment_of :name</diff>
      <filename>test/unit/tag_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f937c08144229a8f677aa26d3623e38622a30cb4</id>
    </parent>
  </parents>
  <author>
    <name>Joe Ferris</name>
    <email>joe.r.ferris@gmail.com</email>
  </author>
  <url>http://github.com/thoughtbot/shoulda/commit/10feba9de635d0d09969aca4a119be649bb10a8d</url>
  <id>10feba9de635d0d09969aca4a119be649bb10a8d</id>
  <committed-date>2009-01-31T12:52:11-08:00</committed-date>
  <authored-date>2009-01-29T18:10:10-08:00</authored-date>
  <message>Added should_allow_mass_assignment_of, the reverse of should_not_allow_mass_assignment_of</message>
  <tree>20b9336aa7a0970c7f1e766afc5f41cd9b0476de</tree>
  <committer>
    <name>Joe Ferris</name>
    <email>joe.r.ferris@gmail.com</email>
  </committer>
</commit>
