Fix failing tests because of missing journal fixtures and indeterministic behaviour of .find(:first)
This commit is contained in:
parent
a1748cd221
commit
f0d271bee3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue