~cytrogen/masto-fe

ref: 520e00a3c1601f5661fbb90d2d2153e8a9aa9dec masto-fe/spec/fabricators_spec.rb -rw-r--r-- 316 bytes
520e00a3 — Nick Schonning Don't run Rubocop excluded files for lint-staged (#25090) 2 years ago
                                                                                
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