mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Ignore some factories on FactoryGirl.lint
This commit is contained in:
parent
858e96fde7
commit
336a1ef6e3
1 changed files with 5 additions and 1 deletions
|
@ -6,6 +6,10 @@ RSpec.describe 'FactoryGirl', db: true do
|
|||
end
|
||||
|
||||
it 'lints factories' do
|
||||
FactoryGirl.lint
|
||||
factories_to_lint = FactoryGirl.factories.reject do |factory|
|
||||
%i(reserved_domain).include?(factory.name) || factory.name.to_s =~ /^domain/ # Ignore the ones with domain_name validator
|
||||
end
|
||||
|
||||
FactoryGirl.lint factories_to_lint
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue