summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-04-01 20:29:48 -0400
committerRobert Speicher <rspeicher@gmail.com>2016-04-01 20:31:12 -0400
commit60f4081e135bdcd893d60192e652c4b829c656dd (patch)
treebdc588cce0f9ce617d0ad765a18e7594dd460b47
parent0b9d9816f8ef1d871a050cea5d8bc3d9203c3d18 (diff)
downloadgitlab-ce-60f4081e135bdcd893d60192e652c4b829c656dd.tar.gz
Factories don't have to be limited to `ActiveRecord` objects
[ci skip]
-rw-r--r--doc/development/testing.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/development/testing.md b/doc/development/testing.md
index a7e85ecebed..3d1c4ccab47 100644
--- a/doc/development/testing.md
+++ b/doc/development/testing.md
@@ -22,6 +22,8 @@ fixture replacement.
resulting record to pass validation.
- When instantiating from a factory, don't supply extraneous attributes that
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
[Traits]: http://www.rubydoc.info/gems/factory_girl/file/GETTING_STARTED.md#Traits