Commit 8042c0ea75bcb9a2a154439fc1d06d08b9ed16ec
1 parent
ec3914e2
Exists in
master
and in
22 other branches
rails3: replace build on comment_notifier to avoid mass-assignment
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
test/unit/comment_notifier_test.rb
@@ -95,7 +95,7 @@ class CommentNotifierTest < ActiveSupport::TestCase | @@ -95,7 +95,7 @@ class CommentNotifierTest < ActiveSupport::TestCase | ||
95 | private | 95 | private |
96 | 96 | ||
97 | def create_comment_and_notify(args) | 97 | def create_comment_and_notify(args) |
98 | - Comment.create!(args) | 98 | + create(Comment, args) |
99 | process_delayed_job_queue | 99 | process_delayed_job_queue |
100 | end | 100 | end |
101 | 101 |