-
-
Notifications
You must be signed in to change notification settings - Fork 285
Closed
Labels
Description
Thank you for building and maintaining rubocop-rspec. My team uses this and a lot of the defaults are pretty sensible, and help us to write cleaner tests!
FactoryBot recently released version 6.0.0, which introduces a new method to use within a factory definition, #traits_for_enum. Using this causes Rubocop to flag it with FactoryBot/AttributeDefinedStatically. This issue stems from the fact that this new method is not included in Rubocop::RSpec::FactoryBot.reserved_methods.
A simple fix would be to include this reserved method in the list. I don't mind creating a PR for this.
Curious to hear your thoughts!