BigW Consortium Gitlab

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

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