You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
316 B

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