Commit Graph

4 Commits

Author SHA1 Message Date
Joshua Clayton 3798144bd1 FactoryGirl.reload clears all registries and loads all known definitions
Closes #196
2011-09-02 14:45:27 -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