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

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