Skip to content

Instantly share code, notes, and snippets.

@beauraF
Last active August 16, 2019 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beauraF/83c81485f92ed54a89dab21a326a31d1 to your computer and use it in GitHub Desktop.
Save beauraF/83c81485f92ed54a89dab21a326a31d1 to your computer and use it in GitHub Desktop.
A test example to integrate FactoryBot.lint into your Rails tests
# frozen_string_literal: true
require 'test_helper'
class FactoryBotTest < ActiveSupport::TestCase
test 'lint all factories' do
FactoryBot.lint(traits: true, verbose: true)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment