diff options
author | Tongfei Gao <gaotongfei1995@gmail.com> | 2019-05-18 20:58:22 +0800 |
---|---|---|
committer | Tongfei Gao <gaotongfei1995@gmail.com> | 2019-07-27 16:40:16 +0800 |
commit | c09a4fd23d7d52552132edde7ad155f366c560b8 (patch) | |
tree | 689a66272dffccef08230af259a687ed4be960cd /activestorage/test/models/attached | |
parent | d1ffe59ab5fd6e811833c127d43b32e87b5d7131 (diff) | |
download | rails-c09a4fd23d7d52552132edde7ad155f366c560b8.tar.gz rails-c09a4fd23d7d52552132edde7ad155f366c560b8.tar.bz2 rails-c09a4fd23d7d52552132edde7ad155f366c560b8.zip |
Allow specify fixtures to be ignored
Allow specifying what fixtures can be ignored by setting
`ignore` in fixtures YAML file:
# users.yml
_fixture:
ignore:
- base
base: &base
admin: false
introduction: "This is a default description"
admin:
<<: *base
admin: true
visitor:
<<: *base
In the above example, "base" fixture will be ignored when creating
users fixture. This is helpful when you want to inherit attributes
and it makes your fixtures more "DRY".
Diffstat (limited to 'activestorage/test/models/attached')
0 files changed, 0 insertions, 0 deletions