Skip to content

Don't use FactoryBot in migration specs.

paz requested to merge paz/no-factory-bot-in-migration-specs into master

That leads to failures because the FactoryBot can't handle databases whose columns don't match the factory definition.

Hat tip to https://github.com/gitlabhq/gitlabhq/blob/master/rubocop/cop/rspec/factories_in_migration_specs.rb for the hint.

Closes #447 (closed)

Edited by georg

Merge request reports