diff --git a/lib/tasks/factory_bot.rake b/lib/tasks/factory_bot.rake deleted file mode 100644 index 7ae5e59..0000000 --- a/lib/tasks/factory_bot.rake +++ /dev/null @@ -1,8 +0,0 @@ -# frozen_string_literal: true - -namespace :factorybot do - desc 'Lint FactoryBot factories' - task lint: :environment do - FactoryBot.lint - end -end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 9e55c9c..3cc5e12 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -23,6 +23,7 @@ RSpec.configure do |config| # assertion/expectation library such as wrong or the stdlib/minitest # assertions if you prefer. + config.before(:suite) { FactoryBot.lint } # only runs tests with " , focus: true " # config.filter_run focus: true