aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/testing.md
diff options
context:
space:
mode:
authorCody Boyko <codyboyko@yahoo.ca>2017-05-12 20:13:18 +0000
committerCody Boyko <codyboyko@yahoo.ca>2017-05-12 20:13:18 +0000
commitb373d84fb2a3d9756f3e0276e4fb52fd2ae09afa (patch)
treeaa9db61e633126e7387ed7fd457df76f64e9d3e1 /guides/source/testing.md
parent276bfa7fc6efb0cea4408fe9f97b8741737b7549 (diff)
downloadrails-b373d84fb2a3d9756f3e0276e4fb52fd2ae09afa.tar.gz
rails-b373d84fb2a3d9756f3e0276e4fb52fd2ae09afa.tar.bz2
rails-b373d84fb2a3d9756f3e0276e4fb52fd2ae09afa.zip
[ci skip] Mailer fixtures in Testing guide.
Update guide to clarify that mailer fixtures are not created when using the mailer generator.
Diffstat (limited to 'guides/source/testing.md')
-rw-r--r--guides/source/testing.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md
index 71fb6fb0e8..ced88e888c 100644
--- a/guides/source/testing.md
+++ b/guides/source/testing.md
@@ -1406,7 +1406,7 @@ In order to test that your mailer is working as expected, you can use unit tests
For the purposes of unit testing a mailer, fixtures are used to provide an example of how the output _should_ look. Because these are example emails, and not Active Record data like the other fixtures, they are kept in their own subdirectory apart from the other fixtures. The name of the directory within `test/fixtures` directly corresponds to the name of the mailer. So, for a mailer named `UserMailer`, the fixtures should reside in `test/fixtures/user_mailer` directory.
-When you generated your mailer, the generator creates stub fixtures for each of the mailers actions. If you didn't use the generator, you'll have to create those files yourself.
+If you generated your mailer, the generator does not create stub fixtures for the mailers actions. You'll have to create those files yourself as described above.
#### The Basic Test Case