diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-10-20 19:06:07 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-10-20 19:06:07 +0000 |
commit | ba74754c4f1843a76919fcb03a8cec4c32a65378 (patch) | |
tree | 5ac44c72b0edcd496a83d45b13508331e50de092 /railties/lib/rails_generator/generators/components/mailer/templates/unit_test.rb | |
parent | 1d7196b55272d5f900a3080387319686e395b981 (diff) | |
download | rails-ba74754c4f1843a76919fcb03a8cec4c32a65378.tar.gz rails-ba74754c4f1843a76919fcb03a8cec4c32a65378.tar.bz2 rails-ba74754c4f1843a76919fcb03a8cec4c32a65378.zip |
Mailer generator: handle mailers in modules, set mime_version in unit test.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5326 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/rails_generator/generators/components/mailer/templates/unit_test.rb')
-rw-r--r-- | railties/lib/rails_generator/generators/components/mailer/templates/unit_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/rails_generator/generators/components/mailer/templates/unit_test.rb b/railties/lib/rails_generator/generators/components/mailer/templates/unit_test.rb index 0512cad5fa..d7b5ee0eb3 100644 --- a/railties/lib/rails_generator/generators/components/mailer/templates/unit_test.rb +++ b/railties/lib/rails_generator/generators/components/mailer/templates/unit_test.rb @@ -1,4 +1,4 @@ -require File.dirname(__FILE__) + '/../test_helper' +require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../test_helper' require '<%= file_name %>' class <%= class_name %>Test < Test::Unit::TestCase @@ -14,6 +14,7 @@ class <%= class_name %>Test < Test::Unit::TestCase @expected = TMail::Mail.new @expected.set_content_type "text", "plain", { "charset" => CHARSET } + @expected.mime_version = '1.0' end <% for action in actions -%> |