diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2013-12-10 18:05:13 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2013-12-10 18:05:13 -0200 |
commit | b5c5121f67c88a2be1c56e810f5c64013351ce79 (patch) | |
tree | 9a7588caa0ebfa1cbd8086ff274d280c01dee9b4 /railties/lib/rails/generators/test_unit/mailer/templates/functional_test.rb | |
parent | 031ce1f58128dc12bfef90e224e90c608fe489b4 (diff) | |
download | rails-b5c5121f67c88a2be1c56e810f5c64013351ce79.tar.gz rails-b5c5121f67c88a2be1c56e810f5c64013351ce79.tar.bz2 rails-b5c5121f67c88a2be1c56e810f5c64013351ce79.zip |
Revert "Rename not Ruby files to .tt"
This reverts commit bd360ad3c1d59273bf96ea01b17cf04285816dc2.
Reverting this for now until we fix the Thor related issue
Diffstat (limited to 'railties/lib/rails/generators/test_unit/mailer/templates/functional_test.rb')
-rw-r--r-- | railties/lib/rails/generators/test_unit/mailer/templates/functional_test.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/test_unit/mailer/templates/functional_test.rb b/railties/lib/rails/generators/test_unit/mailer/templates/functional_test.rb new file mode 100644 index 0000000000..7e204105a3 --- /dev/null +++ b/railties/lib/rails/generators/test_unit/mailer/templates/functional_test.rb @@ -0,0 +1,21 @@ +require 'test_helper' + +<% module_namespacing do -%> +class <%= class_name %>Test < ActionMailer::TestCase +<% actions.each do |action| -%> + test "<%= action %>" do + mail = <%= class_name %>.<%= action %> + assert_equal <%= action.to_s.humanize.inspect %>, mail.subject + assert_equal ["to@example.org"], mail.to + assert_equal ["from@example.com"], mail.from + assert_match "Hi", mail.body.encoded + end + +<% end -%> +<% if actions.blank? -%> + # test "the truth" do + # assert true + # end +<% end -%> +end +<% end -%> |