Update FactoryBot strings & urls

This commit is contained in:
Henne Vogelsang 2018-09-03 20:48:28 +02:00
parent 4aed8a73b2
commit deb4dd21f5
No known key found for this signature in database
GPG key ID: 9D6164C2955FADE0
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