diff options
author | Stefan Wrobel <swrobel@users.noreply.github.com> | 2016-04-08 12:06:13 -0700 |
---|---|---|
committer | Stefan Wrobel <swrobel@users.noreply.github.com> | 2016-04-08 12:06:13 -0700 |
commit | 8692722d347c9df9a65f2e871489970f78dc97ad (patch) | |
tree | a38dd7f7ec87a9fa4d524c33d6c8e6e990e9cfae /guides/source | |
parent | 3af29811196d6fc31fe3534a25af460948266863 (diff) | |
download | rails-8692722d347c9df9a65f2e871489970f78dc97ad.tar.gz rails-8692722d347c9df9a65f2e871489970f78dc97ad.tar.bz2 rails-8692722d347c9df9a65f2e871489970f78dc97ad.zip |
Clarify fixtures examples [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/testing.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md index e302611b2a..34c831c802 100644 --- a/guides/source/testing.md +++ b/guides/source/testing.md @@ -495,7 +495,8 @@ users(:david) users(:david).id # one can also access methods available on the User class -email(david.partner.email, david.location_tonight) +david = users(:david) +david.call(david.partner) ``` To get multiple fixtures at once, you can pass in a list of fixture names. For example: |