Permalink
Browse files

test for paranoid multiple delete by id

  • Loading branch information...
1 parent 1ec37c6 commit f46bc14104c0076a9d799ba4252b1e530b29d5ce @softcraft-development softcraft-development committed Dec 6, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/more_paranoid_test.rb
@@ -1,6 +1,15 @@
require 'test_helper'
class MoreParanoidTest < ParanoidBaseTest
+ test "delete by multiple id is paranoid" do
+ model_a = ParanoidBelongsDependant.create
+ model_b = ParanoidBelongsDependant.create
+ ParanoidBelongsDependant.delete([model_a.id, model_b.id])
+
+ assert_paranoid_deletion(model_a)
+ assert_paranoid_deletion(model_b)
+ end
+
test "destroy by multiple id is paranoid" do
model_a = ParanoidBelongsDependant.create
model_b = ParanoidBelongsDependant.create

0 comments on commit f46bc14

Please sign in to comment.