From 8042c0ea75bcb9a2a154439fc1d06d08b9ed16ec Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Thu, 5 Sep 2013 18:43:16 -0300 Subject: [PATCH] rails3: replace build on comment_notifier to avoid mass-assignment --- test/unit/comment_notifier_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/comment_notifier_test.rb b/test/unit/comment_notifier_test.rb index bf227fa..e7a31ff 100644 --- a/test/unit/comment_notifier_test.rb +++ b/test/unit/comment_notifier_test.rb @@ -95,7 +95,7 @@ class CommentNotifierTest < ActiveSupport::TestCase private def create_comment_and_notify(args) - Comment.create!(args) + create(Comment, args) process_delayed_job_queue end -- libgit2 0.21.2