<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,7 @@
 
+May 26
+= test destroy_all with conditions
+
 == 0.1.0
 
 May 26</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -2,12 +2,8 @@
 = make sure the GitHub gem works
 = README: add installation instructions for gem
 
-= move model tests to their own subdirectory
-
 = support for :include_destroyed =&gt; true
 
-= test delete_all with conditions
-
 = move \app directory to \test to avoid adding models to projects that include this plugin
 = test models: need a namespace to avoid name collisions with models in projects that use this plugin
 </diff>
      <filename>TODO</filename>
    </modified>
    <modified>
      <diff>@@ -10,35 +10,59 @@ class DestroyAllTest &lt; Test::Unit::TestCase
   def test_destroy_all
     assert  indestructible_posts(:destroyed).destroyed?
     assert !indestructible_posts(:hello).destroyed?
+    assert !indestructible_posts(:goodbye).destroyed?
+    assert !indestructible_posts(:no_body).destroyed?
     
     IndestructiblePost.destroy_all(indestructible_users(:ryanlowe))
     
     assert  indestructible_posts(:destroyed).reload.destroyed?
     assert  indestructible_posts(:hello).reload.destroyed?
+    assert  indestructible_posts(:goodbye).reload.destroyed?
+    assert  indestructible_posts(:no_body).reload.destroyed?
   end
   
   def test_destroy_all_with_conditions
-    #TODO:
+    assert  indestructible_posts(:destroyed).destroyed?
+    assert !indestructible_posts(:hello).destroyed?
+    assert !indestructible_posts(:goodbye).destroyed?
+    assert !indestructible_posts(:no_body).destroyed?
+    
+    assert_equal 'Hello World!', indestructible_posts(:hello).title
+    
+    IndestructiblePost.destroy_all(indestructible_users(:ryanlowe),&quot;title = 'Hello World!'&quot;)
+    
+    assert  indestructible_posts(:destroyed).reload.destroyed?
+    assert  indestructible_posts(:hello).reload.destroyed?
+    assert !indestructible_posts(:goodbye).reload.destroyed?
+    assert !indestructible_posts(:no_body).reload.destroyed?
   end
   
   def test_destroy_all_nil_user
     assert  indestructible_posts(:destroyed).destroyed?
     assert !indestructible_posts(:hello).destroyed?
+    assert !indestructible_posts(:goodbye).destroyed?
+    assert !indestructible_posts(:no_body).destroyed?
     
     IndestructiblePost.destroy_all(nil)
     
     assert  indestructible_posts(:destroyed).reload.destroyed?
     assert !indestructible_posts(:hello).reload.destroyed?
+    assert !indestructible_posts(:goodbye).reload.destroyed?
+    assert !indestructible_posts(:no_body).reload.destroyed?
   end
   
   def test_destroy_all_not_user
     assert  indestructible_posts(:destroyed).destroyed?
     assert !indestructible_posts(:hello).destroyed?
+    assert !indestructible_posts(:goodbye).destroyed?
+    assert !indestructible_posts(:no_body).destroyed?
     
     IndestructiblePost.destroy_all(Object.new)
     
     assert  indestructible_posts(:destroyed).reload.destroyed?
     assert !indestructible_posts(:hello).reload.destroyed?
+    assert !indestructible_posts(:goodbye).reload.destroyed?
+    assert !indestructible_posts(:no_body).reload.destroyed?
   end
   
 end
\ No newline at end of file</diff>
      <filename>test/unit/class/destroy_all_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d4037f3bac1d576e561ae0a744f4c05cc16a2758</id>
    </parent>
  </parents>
  <author>
    <name>Ryan Lowe</name>
    <email>ryanlowe@gmail.com</email>
  </author>
  <url>http://github.com/ryanlowe/acts_as_indestructible/commit/62743939b85922e7ce478a904368f6af5e0f3d1b</url>
  <id>62743939b85922e7ce478a904368f6af5e0f3d1b</id>
  <committed-date>2008-05-26T10:26:41-07:00</committed-date>
  <authored-date>2008-05-26T10:26:41-07:00</authored-date>
  <message>test destroy_all with conditions</message>
  <tree>9b64492c438b815508b8b7ec602add7a014262a1</tree>
  <committer>
    <name>Ryan Lowe</name>
    <email>ryanlowe@gmail.com</email>
  </committer>
</commit>
