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

13 commits

Author SHA1 Message Date
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
Volodymyr Fedyk
02df69cc91 Update find_definitions.rb
Fixed strange paths in comment.
2015-02-02 14:42:59 -05:00
Joost Baaij
7e2bed5938 Replace File.exists? with File.exist?
File.exists? has been deprecated since Ruby 1.9.2

Yes, I am running the gem with warnings. :-)
2014-06-24 10:04:27 -04:00
Joshua Clayton
ed598ec54c Update repo to follow thoughtbot guide for whitespace in blocks 2013-12-14 22:33:15 -05:00
Joshua Clayton
f1fd650048 Clean up documentation 2012-05-05 02:31:31 -04:00
Joshua Clayton
d8db256664 Style cleanup 2012-05-05 00:53:19 -04:00
Joshua Clayton
a4e75163c8 Load definition files instead of require so re-running find_definitions works as expected
Closes #161
2011-07-29 14:00:08 -04:00
Joshua Clayton
17f3ef408d Fix find_definitions to expand the path instead of always prepending . 2011-07-22 14:47:47 -04:00
Joshua Clayton
c47affb1aa Requiring factory definition files now works in 1.9 outside of tests
Ruby 1.9 doesn't automatically include . in the load path; if we do a
require to a relative path (eg a file within spec or test), 1.9 will raise a
LoadError because spec or test isn't normally in the load path.
2011-07-22 11:53:21 -04:00
Joshua Clayton
e552dc322e Find definitions handles subdirectories
Closes #150
2011-06-27 15:24:49 -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
David N. Welton
b26a439fe8 Perform a sort on files loaded from the factories/ directory.
We do this so that it's possible to know the order in which the files
will be loaded.  This is important if there are interdependencies.
2010-08-25 11:14:44 -04:00
Joe Ferris
8b4a6a1c3a Moved definition loading syntax out of the factory class; moved everything into a FactoryGirl module 2010-07-06 20:22:02 -04:00