summaryrefslogtreecommitdiffstats
path: root/test/unit/mailer_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-03-10 15:09:49 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-03-10 15:09:49 +0000
commitc514316a2efcf4e8df4bc2f2681548ebffa30adf (patch)
treeb9b7bc9ccbbbad1cce2701430788f4dfbf872610 /test/unit/mailer_test.rb
parent8b98ceb92c8fba72315d28c3b7664f481547bf24 (diff)
downloadredmine-c514316a2efcf4e8df4bc2f2681548ebffa30adf.tar.gz
redmine-c514316a2efcf4e8df4bc2f2681548ebffa30adf.zip
wiki branch merged into trunk
git-svn-id: http://redmine.rubyforge.org/svn/trunk@323 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/mailer_test.rb')
-rw-r--r--test/unit/mailer_test.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb
index 421e3dc85..26a53dcf8 100644
--- a/test/unit/mailer_test.rb
+++ b/test/unit/mailer_test.rb
@@ -24,7 +24,7 @@ class MailerTest < Test::Unit::TestCase
def test_issue_add
issue = Issue.find(1)
GLoc.valid_languages.each do |lang|
- Setting.default_language = lang
+ Setting.default_language = lang.to_s
assert Mailer.deliver_issue_add(issue)
end
end
@@ -32,7 +32,7 @@ class MailerTest < Test::Unit::TestCase
def test_issue_edit
journal = Journal.find(1)
GLoc.valid_languages.each do |lang|
- Setting.default_language = lang
+ Setting.default_language = lang.to_s
assert Mailer.deliver_issue_edit(journal)
end
end
@@ -40,7 +40,7 @@ class MailerTest < Test::Unit::TestCase
def test_document_add
document = Document.find(1)
GLoc.valid_languages.each do |lang|
- Setting.default_language = lang
+ Setting.default_language = lang.to_s
assert Mailer.deliver_document_add(document)
end
end
@@ -48,7 +48,7 @@ class MailerTest < Test::Unit::TestCase
def test_lost_password
token = Token.find(2)
GLoc.valid_languages.each do |lang|
- token.user.update_attribute :language, lang
+ token.user.update_attribute :language, lang.to_s
assert Mailer.deliver_lost_password(token)
end
end
@@ -56,7 +56,7 @@ class MailerTest < Test::Unit::TestCase
def test_register
token = Token.find(1)
GLoc.valid_languages.each do |lang|
- token.user.update_attribute :language, lang
+ token.user.update_attribute :language, lang.to_s
assert Mailer.deliver_register(token)
end
end