From a0677a2644e43273a2023cb4bc91059627dd3c69 Mon Sep 17 00:00:00 2001 From: Malaber <32635600+Malaber@users.noreply.github.com> Date: Sun, 28 Apr 2019 14:40:59 +0200 Subject: [PATCH] Add Rake Task to lint Factories --- lib/tasks/factorybot.rake | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 lib/tasks/factorybot.rake diff --git a/lib/tasks/factorybot.rake b/lib/tasks/factorybot.rake new file mode 100644 index 0000000..d09b34c --- /dev/null +++ b/lib/tasks/factorybot.rake @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +namespace :factorybot do + desc 'Lint FactoryBot factories' + task :lint do |_| + FactoryBot.lint + end +end