summaryrefslogtreecommitdiff
path: root/spec/factories_spec.rb
blob: caf9ac9a9d3e15907ac609d204c1fa33156cc22d (plain)
1
2
3
4
5
6
7
8
9
10
require 'spec_helper'

FactoryGirl.factories.map(&:name).each do |factory_name|
  next if :key_with_a_space_in_the_middle == factory_name
  describe "#{factory_name} factory" do
    it 'should be valid' do
      build(factory_name).should be_valid
    end
  end
end