Sha256: 936e8c3e000bf59b82bc4dc3c66629eec7400427b7c24b9ec6d056a8048fe886
Contents?: true
Size: 373 Bytes
Versions: 18
Compression:
Stored size: 373 Bytes
Contents
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 is_valid = subject.valid? expect(is_valid).to be_true, subject.errors.full_messages.join(',') end end end end
Version data entries
18 entries across 18 versions & 4 rubygems