Skip to content

Commit

Permalink
Use email as an example of NonImplicitAssociationMethodNames config
Browse files Browse the repository at this point in the history
  • Loading branch information
r7kamura committed Nov 20, 2022
1 parent 957caf9 commit 7666577
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/cops_rspec_factorybot.adoc
Expand Up @@ -43,8 +43,8 @@ user
# good
association :user
# good (defined in NonImplicitAssociationMethodNames)
skip_create
# good (NonImplicitAssociationMethodNames: ['email'])
email
----

=== Configurable attributes
Expand Down
4 changes: 2 additions & 2 deletions lib/rubocop/cop/rspec/factory_bot/association_style.rb
Expand Up @@ -25,8 +25,8 @@ module FactoryBot
# # good
# association :user
#
# # good (defined in NonImplicitAssociationMethodNames)
# skip_create
# # good (NonImplicitAssociationMethodNames: ['email'])
# email
class AssociationStyle < Base # rubocop:disable Metrics/ClassLength
extend AutoCorrector

Expand Down

0 comments on commit 7666577

Please sign in to comment.