]> source.dussan.org Git - redmine.git/commitdiff
Fixed potential test failure.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 28 Feb 2012 05:33:46 +0000 (05:33 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 28 Feb 2012 05:33:46 +0000 (05:33 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9027 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/news_test.rb

index fd0063efb52e16266a40d69ec8180aabe79406f0..e8c2232647b4b76a64c8d8287bf112ae5db6b6d5 100644 (file)
@@ -30,7 +30,7 @@ class NewsTest < ActiveSupport::TestCase
   def test_create_should_send_email_notification
     ActionMailer::Base.deliveries.clear
     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_equal 1, ActionMailer::Base.deliveries.size