fabricators_spec.rb 347 B

1234567891011121314
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. Fabrication.manager.load_definitions if Fabrication.manager.empty?
  4. Fabrication.manager.schematics.map(&:first).each do |factory_name|
  5. describe "The #{factory_name} factory" do
  6. it 'is valid' do
  7. factory = Fabricate(factory_name)
  8. expect(factory).to be_valid
  9. end
  10. end
  11. end