Skip to content

Commit

Permalink
Reduce DescribedClass class size to pass rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
sl4vr committed Jul 8, 2020
1 parent 8b5d8a1 commit f310907
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/rubocop/cop/rspec/described_class.rb
Expand Up @@ -129,11 +129,7 @@ def scope_change?(node)
end

def skippable_block?(node)
node.block_type? && !rspec_block?(node) && skip_blocks?
end

def skip_blocks?
cop_config['SkipBlocks']
node.block_type? && !rspec_block?(node) && cop_config['SkipBlocks']
end

def offensive?(node)
Expand Down

0 comments on commit f310907

Please sign in to comment.