diff options
author | Zachary Scott <e@zzak.io> | 2015-06-13 02:37:20 -0400 |
---|---|---|
committer | Zachary Scott <e@zzak.io> | 2015-06-13 02:37:20 -0400 |
commit | 521c51d4375d2cf045889672c275937d609770db (patch) | |
tree | 198f04c1fd62809468e40e2ab60b38ac77c4f75a /guides | |
parent | 335a2b8a40d6f1553a76328fd89fc90a93d8d234 (diff) | |
parent | 3862c55049adc14efd8dc8bd4c4627e0b987d51c (diff) | |
download | rails-521c51d4375d2cf045889672c275937d609770db.tar.gz rails-521c51d4375d2cf045889672c275937d609770db.tar.bz2 rails-521c51d4375d2cf045889672c275937d609770db.zip |
Merge pull request #20543 from spark008/patch-1
Add fixture use case to testing.md.
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/testing.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md index 230e8162f3..2fd54a48fc 100644 --- a/guides/source/testing.md +++ b/guides/source/testing.md @@ -141,6 +141,13 @@ users(:david).id email(david.partner.email, david.location_tonight) ``` +To get multiple fixtures at once, you can pass in a list of fixture names. For example: + +```ruby +# this will return an array containing the fixtures david and steve +users(:david, :steve) +``` + ### Console Tasks for Running your Tests Rails comes with a CLI command to run tests. |