From 294accf197f8ad912a8b6cc9efbe8f24316335a8 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 1 Mar 2012 15:14:15 +0000 Subject: [PATCH] Merged r9027 from trunk. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.3-stable@9039 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/news_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/news_test.rb b/test/unit/news_test.rb index 31298225c..e21e88bb8 100644 --- a/test/unit/news_test.rb +++ b/test/unit/news_test.rb @@ -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 -- 2.39.5