A nice little test to ensure that all of your Factory Bot factories are all valid 👌
require "test_helper"
class FactoriesTest < ActiveSupport::TestCase
test "all factories are valid" do
assert_nothing_raised { FactoryBot.lint(traits: true) }
end
end