Sha256: 4f5becefe56f53bdc042e24f4774f20e40e9b27825116ef50b8f5d5e16cfa2e6
Contents?: true
Size: 299 Bytes
Versions: 8
Compression:
Stored size: 299 Bytes
Contents
require 'spec_helper' FactoryGirl.factories.map(&:name).each do |factory_name| describe "The #{factory_name} factory" do it 'should be valid' do instance = FactoryGirl.build(factory_name) instance.valid?.should be_true, instance.errors.full_messages.to_sentence end end end
Version data entries
8 entries across 8 versions & 1 rubygems