Update FactoryBot strings & urls

This commit is contained in:
Henne Vogelsang 2018-09-03 20:48:28 +02:00
parent 0a19418d15
commit 64d8f05bdd
34 changed files with 34 additions and 34 deletions

View file

@ -0,0 +1,17 @@
# frozen_string_literal: true
namespace :factory_bot do
desc "Verify that all FactoryBot factories are valid"
task lint: :environment do
if Rails.env.test?
begin
DatabaseCleaner.start
FactoryBot.lint
ensure
DatabaseCleaner.clean
end
else
system("bundle exec rake factory_bot:lint RAILS_ENV='test'")
end
end
end