Sha256: a3340d707933e9f2245b7cb19e6d0eb5f3d5435e8a99341d10e0b40d3a88d6e4
Contents?: true
Size: 321 Bytes
Versions: 17
Compression:
Stored size: 321 Bytes
Contents
require 'spec_helper' FactoryGirl.factories.map(&:name).each do |factory_name| describe "factory #{factory_name}" do it 'is valid' do factory = build(factory_name) if factory.respond_to?(:valid?) expect(factory).to be_valid, factory.errors.full_messages.join(',') end end end end
Version data entries
17 entries across 17 versions & 1 rubygems