summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-05-05 12:20:18 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-05-05 12:20:18 +0000
commit6e7eadf9fb7f52b1429ba96e25ce0a3388cf6402 (patch)
tree1ce74aa7e6cde2aed0b51e2db7060ea5811d20bf
parent5ce2987ea933736d53de8d42f50e2dee80466e8d (diff)
downloadredmine-6e7eadf9fb7f52b1429ba96e25ce0a3388cf6402.tar.gz
redmine-6e7eadf9fb7f52b1429ba96e25ce0a3388cf6402.zip
move unit mailer test last_email method to the bottom and change to private
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9635 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/unit/mailer_test.rb13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb
index 516638676..d9daec7a7 100644
--- a/test/unit/mailer_test.rb
+++ b/test/unit/mailer_test.rb
@@ -497,12 +497,6 @@ class MailerTest < ActiveSupport::TestCase
assert_mail_body_match 'Bug #3: Error 281 when updating a recipe', mail
end
- def last_email
- mail = ActionMailer::Base.deliveries.last
- assert_not_nil mail
- mail
- end
-
def test_mailer_should_not_change_locale
Setting.default_language = 'en'
# Set current language to italian
@@ -536,4 +530,11 @@ class MailerTest < ActiveSupport::TestCase
end
end
end
+
+private
+ def last_email
+ mail = ActionMailer::Base.deliveries.last
+ assert_not_nil mail
+ mail
+ end
end