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 a770dac9794..8d7c73b99a0 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.exclude?(name) + name && !SKIP_NAMES.include?(name) end end end |