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
Nick Quaranto
d8aa63a471 make sure the value is a string when calling #strip in step defs since cucumber > 1.0 yields real types instead of strings on matches 2011-07-28 17:22:51 -04:00
Joshua Clayton
9c4818a095 Handle aliases within the step definitions 2011-06-30 18:27:25 -04:00
Joshua Clayton
2f41dc729e Break out step_definitions into strategies for finding and creating attributes
The change 1b28476713 introduced an issue
where projects not using ActiveRecord would fail because the constant
wasn't defined.

This removes the reliance on ActiveRecord and uses different strategies
for building hashes from cucumber tables based on whether the attributes
are finding a record in the database or creating an instance with
factory girl.
2011-06-30 14:58:01 -04:00
Joshua Clayton
e69124bd8b Determine key based on associations instead of checking against ActiveRecord (which is a big no-no) 2011-06-29 23:28:03 -04:00
Brice Stacey
87712252ac Fix step definitions with case sensitive factory name and attributes
Closes #95
2011-06-28 12:29:11 -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
Joe Ferris
a7f7e85187 Updated docs and examples for new syntax 2011-01-26 20:55:06 -05:00
Fernando Ultremare
1b28476713 Allow recursive associations from cucumber table arguments 2010-11-05 10:27:49 -04:00
Joe Ferris
5c88bb058b Renamed Factory#factory_name to Factory#name; cleaned up Factory#human_name; bumped version 2010-10-02 00:07:54 -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
Joe Ferris
2a39afe527 Changed internal methods to use the internal api 2010-07-06 20:22:02 -04:00
Tristan Dunn
3e577f3cd5 Clean up whitespace. 2010-06-07 15:51:18 -04:00
Tristan Dunn
1d42b1832a Properly support pluralized words in generated step definitions. 2010-06-07 11:46:01 -04:00
romanvbabenko
206dd0984e Fixed bug with cucumber step definitions and humanized names; fixes
gh-48
2010-04-12 10:42:50 -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
adce9df6c9 More step definitions 2009-09-15 18:06:24 -04:00
Joe Ferris
db6c46a101 Added alternate formatting for step definitions 2009-09-15 17:58:23 -04:00
Joe Ferris
ba6cfea5c7 Switched to use horizontal Cucumber tables instead of vertical 2009-09-15 17:38:40 -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
15f36c8fc9 Now running features with Rake 2009-09-15 15:56:54 -04:00
Joe Ferris
42dbfc8a60 Support plural steps 2009-09-15 15:54:21 -04:00
Joe Ferris
760a165b2e Added step definitions for cucumber 2009-09-15 15:47:47 -04:00