From ba553f94248340b54b32cee1fcbd41295713d180 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sun, 5 Nov 2006 21:56:18 +0000 Subject: Add assert_emails and assert_no_emails to test the number of emails delivered. Closes #6479. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5436 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionmailer/test/fixtures/helper_mailer/use_example_helper.rhtml | 1 + actionmailer/test/fixtures/helper_mailer/use_test_helper.rhtml | 1 - actionmailer/test/fixtures/helpers/example_helper.rb | 5 +++++ actionmailer/test/fixtures/helpers/test_helper.rb | 5 ----- 4 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 actionmailer/test/fixtures/helper_mailer/use_example_helper.rhtml delete mode 100644 actionmailer/test/fixtures/helper_mailer/use_test_helper.rhtml create mode 100644 actionmailer/test/fixtures/helpers/example_helper.rb delete mode 100644 actionmailer/test/fixtures/helpers/test_helper.rb (limited to 'actionmailer/test/fixtures') diff --git a/actionmailer/test/fixtures/helper_mailer/use_example_helper.rhtml b/actionmailer/test/fixtures/helper_mailer/use_example_helper.rhtml new file mode 100644 index 0000000000..fcff3bb1b4 --- /dev/null +++ b/actionmailer/test/fixtures/helper_mailer/use_example_helper.rhtml @@ -0,0 +1 @@ +So, <%= example_format(@text) %> diff --git a/actionmailer/test/fixtures/helper_mailer/use_test_helper.rhtml b/actionmailer/test/fixtures/helper_mailer/use_test_helper.rhtml deleted file mode 100644 index 52ea9aa413..0000000000 --- a/actionmailer/test/fixtures/helper_mailer/use_test_helper.rhtml +++ /dev/null @@ -1 +0,0 @@ -So, <%= test_format(@text) %> diff --git a/actionmailer/test/fixtures/helpers/example_helper.rb b/actionmailer/test/fixtures/helpers/example_helper.rb new file mode 100644 index 0000000000..d66927aa60 --- /dev/null +++ b/actionmailer/test/fixtures/helpers/example_helper.rb @@ -0,0 +1,5 @@ +module ExampleHelper + def example_format(text) + "#{text}" + end +end diff --git a/actionmailer/test/fixtures/helpers/test_helper.rb b/actionmailer/test/fixtures/helpers/test_helper.rb deleted file mode 100644 index f479820c96..0000000000 --- a/actionmailer/test/fixtures/helpers/test_helper.rb +++ /dev/null @@ -1,5 +0,0 @@ -module TestHelper - def test_format(text) - "#{text}" - end -end -- cgit v1.2.3