Last active
August 16, 2019 15:11
-
-
Save beauraF/83c81485f92ed54a89dab21a326a31d1 to your computer and use it in GitHub Desktop.
A test example to integrate FactoryBot.lint into your Rails tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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