Fix failing tests because of missing journal fixtures and indeterministic behaviour of .find(:first)

This commit is contained in:
Holger Just 2011-07-25 21:22:13 +02:00
parent a1748cd221
commit f0d271bee3
1 changed files with 2 additions and 2 deletions

View File

@ -316,7 +316,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
@ -326,7 +326,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