BigW Consortium Gitlab

Commit 60f4081e by Robert Speicher

Factories don't have to be limited to `ActiveRecord` objects

[ci skip]
parent 0b9d9816
...@@ -22,6 +22,8 @@ fixture replacement. ...@@ -22,6 +22,8 @@ fixture replacement.
resulting record to pass validation. resulting record to pass validation.
- When instantiating from a factory, don't supply extraneous attributes that - When instantiating from a factory, don't supply extraneous attributes that
aren't required by the test. aren't required by the test.
- Factories don't have to be limited to `ActiveRecord` objects.
[See example](https://gitlab.com/gitlab-org/gitlab-ce/commit/0b8cefd3b2385a21cfed779bd659978c0402766d).
[factory_girl]: https://github.com/thoughtbot/factory_girl [factory_girl]: https://github.com/thoughtbot/factory_girl
[Traits]: http://www.rubydoc.info/gems/factory_girl/file/GETTING_STARTED.md#Traits [Traits]: http://www.rubydoc.info/gems/factory_girl/file/GETTING_STARTED.md#Traits
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment