about summary refs log tree commit diff
path: root/spec/fabricators_spec.rb
blob: 3b76c56ce657f0a110a7b3797cff1999ac511d22 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
require 'rails_helper'

Fabrication.manager.load_definitions if Fabrication.manager.empty?

Fabrication.manager.schematics.map(&:first).each do |factory_name|
  describe "The #{factory_name} factory" do
    it 'is valid' do
      factory = Fabricate(factory_name)
      expect(factory).to be_valid
    end
  end
end