Enable StaticAttributeDefinedDynamically cop & fix

rubocop-rspec gem includes cops for FactoryBot like the new
 FactoryBot/StaticAttributeDefinedDynamically to enforce declaring
 static attribute values without a block.

* http://www.rubydoc.info/gems/rubocop-rspec/1.24.0/RuboCop/Cop/RSpec/FactoryBot/StaticAttributeDefinedDynamically
This commit is contained in:
Bertocq
2018-03-07 13:44:54 +01:00
parent d3d9573086
commit e2c42a3c63
2 changed files with 5 additions and 2 deletions

View File

@@ -403,6 +403,9 @@ RSpec/VerifiedDoubles:
RSpec/VoidExpect:
Enabled: true
FactoryBot/StaticAttributeDefinedDynamically:
Enabled: true
Security/Eval:
Enabled: true