diff options
Diffstat (limited to 'rubocop/cop/rspec/factory_bot/inline_association.rb')
-rw-r--r-- | rubocop/cop/rspec/factory_bot/inline_association.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rubocop/cop/rspec/factory_bot/inline_association.rb b/rubocop/cop/rspec/factory_bot/inline_association.rb index 8d7c73b99a0..acd2c10a63d 100644 --- a/rubocop/cop/rspec/factory_bot/inline_association.rb +++ b/rubocop/cop/rspec/factory_bot/inline_association.rb @@ -99,7 +99,7 @@ module RuboCop def inside_assocation_definition?(node) node.each_ancestor(:block).any? do |parent| name = association_definition(parent) - name && !SKIP_NAMES.include?(name) + name && !SKIP_NAMES.include?(name) # rubocop:disable Rails/NegateInclude end end end |