1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00
Commit graph

24 commits

Author SHA1 Message Date
Oliver Peate
05bf5a3713 Use sqlite in-memory DB in specs
https://www.sqlite.org/inmemorydb.html
2019-08-01 10:31:46 +01:00
Susan Wright
c22c9ab052 Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
Hunter Braun
89ee4a4524 [Rubocop] Style Cop Offenses (#1208) 2018-10-07 18:02:54 -04:00
Avielle
c716ce01b4 Replace 'girl' with 'bot' everywhere (#1051)
Also: add a deprecation warning to factory_girl, asking users to switch to
factory_bot

https://github.com/thoughtbot/factory_girl/issues/921
2017-10-20 15:20:28 -04:00
Josh Clayton
f48b90a95a Update migration base class to work with new versions of Rails (#1041)
What?
=====

Rails' migrations now support versioning; this updates the superclass to
conditionally swap based on versions of Rails to remove a deprecation
warning.
2017-09-28 09:31:29 -04:00
Joshua Clayton
e9d9e3099b Prep for FactoryGirl 4.0 2012-08-02 11:17:39 -04:00
Joshua Clayton
ae4f43c593 Clean up SimpleCov usage 2012-04-23 21:50:39 -05:00
Chris Griego
81c9f2c3dd Make step definitions more ORM agnostic by preferring .attribute_names
Support for .attribute_names
* ActiveRecord starting in v3.1.0
* ActiveAttr starting in v0.5.0
2012-03-30 11:39:13 -04:00
Joshua Clayton
400c9f193f Remove 1.8.x support 2012-03-16 16:43:21 -04:00
Erik Ostrom
34c1bf9b70 Let Cucumber steps use inherited associations.
By making Factory#associations include the parent's associations.

https://github.com/thoughtbot/factory_girl/issues/292
2012-02-08 00:08:37 -05:00
Dmytrii Nagirniak
5246fdad26 added spec to support ORMs with 'simple columns' (Neo4j) 2012-01-13 11:33:02 -05:00
Joshua Clayton
05ddd3d6b5 Only strip strings in step definitions
This allows for cucumber transforms to create different data structrues
and still work with factory girl steps.

Closes #185
2011-08-22 13:16:32 -04:00
Joshua Clayton
a51b97010d Add dependency on aruba 2011-07-22 11:35:30 -04:00
Joshua Clayton
9c4818a095 Handle aliases within the step definitions 2011-06-30 18:27:25 -04:00
Joe Ferris
c59981de1b Split factories/sequences into separate registries most of the time;
Only use factories from step definitions
2011-05-25 20:08:59 -04:00
Joe Ferris
6b0b3ce748 Use appraisal for testing across ActiveRecord versions 2010-11-11 15:23:15 -06:00
Fernando Ultremare
1b28476713 Allow recursive associations from cucumber table arguments 2010-11-05 10:27:49 -04:00
Jon Yurek
c1a8d772c5 Run tests in 2.1.*, 2.3.*, and 3.0.* 2010-05-20 13:42:45 -04:00
Tristan Dunn
59e66f85c4 Run tests with ActiveRecord 2.3.5 and 3.0.0.beta3! Woo! 2010-05-20 13:39:11 -04:00
Joshua Clayton
2cfc4813fa Cucumber step definitions with blank association columns work intelligently 2010-03-29 17:48:19 -04:00
Joe Ferris
da51a4e48d Fixes for step definitions involving factories with underscores 2009-09-15 18:14:34 -04:00
Joe Ferris
db6c46a101 Added alternate formatting for step definitions 2009-09-15 17:58:23 -04:00
Joe Ferris
33b61c3bfb Fixed issues with some attributes being skipped and added support for linked associations in step definitions 2009-09-15 16:56:20 -04:00
Joe Ferris
760a165b2e Added step definitions for cucumber 2009-09-15 15:47:47 -04:00