Permalink
Browse files

Merge pull request #29064 from boykoc/revenge-of-the-fixtures

[ci skip] Mailer fixtures in Testing guide.
  • Loading branch information...
eileencodes committed May 12, 2017
2 parents 276bfa7 + b373d84 commit 23aa0a2bb551717f153ac75f24c017c43ab853f2
Showing with 1 addition and 1 deletion.
  1. +1 −1 guides/source/testing.md
View
@@ -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

0 comments on commit 23aa0a2

Please sign in to comment.