@@ -30,7 +30,7 class NewsTest < ActiveSupport::TestCase | |||
|
30 | 30 | def test_create_should_send_email_notification |
|
31 | 31 | ActionMailer::Base.deliveries.clear |
|
32 | 32 | Setting.notified_events << 'news_added' |
|
33 |
news = Project.find( |
|
|
33 | news = Project.find(1).news.new(valid_news) | |
|
34 | 34 | |
|
35 | 35 | assert news.save |
|
36 | 36 | assert_equal 1, ActionMailer::Base.deliveries.size |
General Comments 0
You need to be logged in to leave comments.
Login now