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

15 commits

Author SHA1 Message Date
Joshua Clayton
b095f24598 Convert to expect syntax 2013-01-18 13:58:36 -05:00
Joshua Clayton
f83c27e15d Support refering to factory based on class name
Allows for build/creating based on RSpec's described_class, useful since
we've deprecated other syntaxes from FG.

Closes #386
2012-06-08 23:54:22 -04:00
Joshua Clayton
0dcd70cd14 Clean up Registry decorator 2012-04-23 21:35:36 -05:00
Joshua Clayton
d67b798195 Add back removed #[] from Registry 2012-04-23 15:33:12 -05:00
Joshua Clayton
393b299a1f Add StaticRegistry decorator to mix in exceptions 2012-04-20 23:49:37 -04:00
Joshua Clayton
eca2cbf2bc Clean up registry by not requiring the object registered respond to #names 2012-04-20 23:24:04 -04:00
Joshua Clayton
4ef98ff62b Clean up 2012-04-06 15:33:41 -04:00
Kristian Mandrup
178a7ab3f4 multi sequence via optional aliases option 2012-04-06 15:33:16 -04:00
Kristian Mandrup
f387e3865f sequence can now have multiple aliases 2012-04-06 15:33:16 -04:00
Joshua Clayton
6c29b11477 Use 1.9 hash syntax 2012-03-16 16:43:23 -04:00
Joshua Clayton
7fdf1a8858 Registries are named
This allows for easier debugging when code attempts to access traits,
sequences, or factories and doesn't find what it was looking for.

Closes #212
2011-10-15 02:01:16 -04:00
Joshua Clayton
7c9254a452 Clean up attribute and core factory specs 2011-08-19 17:21:14 -04:00
Joshua Clayton
d7feb60bf5 Ensure that iterating over each registered factory returns them uniquely 2011-06-30 18:26:06 -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
5aea0f4096 Use a registry class for keeping factories and sequences. Treat
sequences largely like factories. Refactor name and aliases into a
common names method.
2011-01-27 20:15:33 -05:00