aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorStefan Wrobel <swrobel@users.noreply.github.com>2016-04-08 12:06:13 -0700
committerStefan Wrobel <swrobel@users.noreply.github.com>2016-04-08 12:06:13 -0700
commit8692722d347c9df9a65f2e871489970f78dc97ad (patch)
treea38dd7f7ec87a9fa4d524c33d6c8e6e990e9cfae /guides
parent3af29811196d6fc31fe3534a25af460948266863 (diff)
downloadrails-8692722d347c9df9a65f2e871489970f78dc97ad.tar.gz
rails-8692722d347c9df9a65f2e871489970f78dc97ad.tar.bz2
rails-8692722d347c9df9a65f2e871489970f78dc97ad.zip
Clarify fixtures examples [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/testing.md3
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: