factories_spec.rb 208 Bytes
Newer Older
1 2
require 'spec_helper'

Nihad Abbasov's avatar
Nihad Abbasov committed
3 4 5 6
FactoryGirl.factories.map(&:name).each do |factory_name|
  describe "#{factory_name} factory" do
    it 'should be valid' do
      build(factory_name).should be_valid
7 8 9
    end
  end
end