We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
To make sure that your models are valid you can automatically test all of your factories with the following code:
require 'spec_helper' describe 'validate FactoryGirl factories' do FactoryGirl.factories.each do |factory| context "with factory for :#{factory.name}" do subject { FactoryGirl.build(factory.name) } it "is valid" do subject.should be_valid?, subject.errors.full_messages end end end end