Fixed potential test failure.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9027 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
586661caad
commit
c3d079aeb8
|
@ -30,7 +30,7 @@ class NewsTest < ActiveSupport::TestCase
|
||||||
def test_create_should_send_email_notification
|
def test_create_should_send_email_notification
|
||||||
ActionMailer::Base.deliveries.clear
|
ActionMailer::Base.deliveries.clear
|
||||||
Setting.notified_events << 'news_added'
|
Setting.notified_events << 'news_added'
|
||||||
news = Project.find(:first).news.new(valid_news)
|
news = Project.find(1).news.new(valid_news)
|
||||||
|
|
||||||
assert news.save
|
assert news.save
|
||||||
assert_equal 1, ActionMailer::Base.deliveries.size
|
assert_equal 1, ActionMailer::Base.deliveries.size
|
||||||
|
|
Loading…
Reference in New Issue