diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-04-08 16:12:31 -0300 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-04-08 16:12:31 -0300 |
commit | dce8e58d1fdcf78edad147e6e0913c5d3f9f7c3f (patch) | |
tree | a38dd7f7ec87a9fa4d524c33d6c8e6e990e9cfae | |
parent | 3af29811196d6fc31fe3534a25af460948266863 (diff) | |
parent | 8692722d347c9df9a65f2e871489970f78dc97ad (diff) | |
download | rails-dce8e58d1fdcf78edad147e6e0913c5d3f9f7c3f.tar.gz rails-dce8e58d1fdcf78edad147e6e0913c5d3f9f7c3f.tar.bz2 rails-dce8e58d1fdcf78edad147e6e0913c5d3f9f7c3f.zip |
Merge pull request #24471 from swrobel/patch-1
Clarify fixtures examples [ci skip]
-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: |