started to migrate themes new wrapper script

This commit is contained in:
2019-03-17 18:06:20 +01:00
parent 00c8045742
commit 011f772bc3
14 changed files with 132 additions and 27 deletions

View File

@@ -0,0 +1,15 @@
# lib/tasks/factory_bot.rake
namespace :factory_bot do
desc "Verify that all FactoryBot factories are valid"
task lint: :environment do
if Rails.env.test?
# DatabaseCleaner.clean_with(:deletion)
# DatabaseCleaner.cleaning do
FactoryBot.lint
# end
else
system("bundle exec rake factory_bot:lint RAILS_ENV='test'")
fail if $?.exitstatus.nonzero?
end
end
end