We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Built in now
Renaming to factory_bot
Fix typo
Point out to the lint doc
Message concerning FactoryGirl.lint
Add comment for tests without rails
Add optional guard support
Join validation errors with newlines instead of commas
Tweak comments
Support RSpec 3.x
Improve rspec output
Updated Testing all Factories (with RSpec) (markdown)
You should use create() instead of build(), as build(). If your database requires a field, but Rails doesn't, build() will be valid, whereas create() will bomb.
Add `FactoryGirl.` before the calls to `build`.
Can't get error messages before validations have run
Add hint for testing traits
https://github.com/thoughtbot/suspenders/pull/185
Custom failure message should be string, not array. It also does not works because subject.errors.full_messages is evaluated before the valid? triggered.
be_valid? threw NoMethodError
Made the expectation more idiomatic
Unless you have a Factory model (or maybe store everything in factories.rb?) you need a description for the describe, not a model name
fixed typo
Created Testing all Factories (with RSpec) (markdown)