Use the AttributeDefinedStatically rubocop rule

Factory bot has stopped supporting dynamic attributes, and we'll have to
change all factories before upgrading.

In order to apply the rubocop rule, we need to bump rubocop-rspec to its
latest version.
This commit is contained in:
Javi Martín
2019-06-18 01:44:44 +02:00
parent 61be48a6c6
commit 444fc524f7
4 changed files with 18 additions and 19 deletions

View File

@@ -20,6 +20,9 @@ Capybara/FeatureMethods:
- scenario
- xscenario
FactoryBot/AttributeDefinedStatically:
Enabled: true
Layout/IndentationConsistency:
EnforcedStyle: rails