Spinach is modular alternative to cucumber. Its gaining popularity these days.
This commit adds FactoryGirl.lint, which iterates over each defined factory, builds it, and ensures it is valid. If any factories are invalid, an exception is raised and includes the names of each invalid factory.
Change any references of FactoryGirl to factory_girl for consistency.
* Recommend Stack Overflow instead http://robots.thoughtbot.com/moving-open-source-project-mailing-lists-to-stack-overflow/
* Make that setup more prominent * Use it in the documentation
This introduces a set of methods for each build strategy where only two records are created. Because the *_list methods can create an arbitrary number (often too high), this introduces *_pair to ensure only two records are created (and the number 2 doesn't need to be specified in the call).
* Mad props to Josh Clatyon, y'all * Link open source contributors instead of attempting to list them * all
* Use the release version of Rails 4.0 instead of master * Update .lock files to use relative path so they don't keep changing per developer.
Calling `block.call(self)` means any implied scope of block evaluation goes out the window when an arity of 1 is used. This change uses `instance_exec`, passing along self as the argument for the block variable, meaning that the block is still invoked within the context of the FactoryGirl::Evaluator while allowing the variable to have access to the evaluator. Closes #529