]> source.dussan.org Git - redmine.git/commitdiff
Test failure with Postgresql+ruby1.8 (#2549).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 9 Feb 2014 16:34:41 +0000 (16:34 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 9 Feb 2014 16:34:41 +0000 (16:34 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12870 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/mailer_test.rb

index 5c155e6a5427e9dbfe3d6d2654633b0f4e7e33fc..ae9bbf5955ffbbcb7c009f3623dd430b083bf5ba 100644 (file)
@@ -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