From c0048f79544c0f3ddfc95017531aca520e938d8c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 28 Feb 2012 05:35:33 +0000 Subject: [PATCH] Fixed potential test failure. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9028 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/mailer_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb index 344e671f8..18a045713 100644 --- a/test/unit/mailer_test.rb +++ b/test/unit/mailer_test.rb @@ -401,7 +401,7 @@ class MailerTest < ActiveSupport::TestCase end def test_wiki_content_added - content = WikiContent.find(:first) + content = WikiContent.find(1) valid_languages.each do |lang| Setting.default_language = lang.to_s assert_difference 'ActionMailer::Base.deliveries.size' do @@ -411,7 +411,7 @@ class MailerTest < ActiveSupport::TestCase end def test_wiki_content_updated - content = WikiContent.find(:first) + content = WikiContent.find(1) valid_languages.each do |lang| Setting.default_language = lang.to_s assert_difference 'ActionMailer::Base.deliveries.size' do