Enable "zero monkey patching" mode in RSpec (#31614)
This commit is contained in:
parent
c9ea91f868
commit
f1003b2560
439 changed files with 441 additions and 439 deletions
|
@ -5,7 +5,7 @@ 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
|
||||
RSpec.describe "The #{factory_name} factory" do
|
||||
it 'is able to create valid records' do
|
||||
records = Fabricate.times(2, factory_name) # Create multiple of each to uncover uniqueness issues
|
||||
expect(records).to all(be_valid)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue