From: Jean-Philippe Lang Date: Sun, 9 Feb 2014 16:34:41 +0000 (+0000) Subject: Test failure with Postgresql+ruby1.8 (#2549). X-Git-Tag: 2.5.0~38 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=83dae30140f0aecde1de2a4a3acbf73de5564377;p=redmine.git Test failure with Postgresql+ruby1.8 (#2549). git-svn-id: http://svn.redmine.org/redmine/trunk@12870 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb index 5c155e6a5..ae9bbf595 100644 --- a/test/unit/mailer_test.rb +++ b/test/unit/mailer_test.rb @@ -470,7 +470,7 @@ class MailerTest < ActiveSupport::TestCase def test_news_added_should_notify_project_news_watchers user1 = User.generate! user2 = User.generate! - news = News.first + news = News.find(1) news.project.enabled_module('news').add_watcher(user1) Mailer.news_added(news).deliver