Skip to content

Commit b32c9fa

Browse files
committed
Revert "Reduce DescribedClass class size to pass rubocop"
This reverts commit 3864576.
1 parent cb82bba commit b32c9fa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/rubocop/cop/rspec/described_class.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,11 @@ def scope_change?(node)
128128
end
129129

130130
def skippable_block?(node)
131-
node.block_type? && !block_pattern?(node, rspec_all) && cop_config['SkipBlocks']
131+
node.block_type? && !block_pattern?(node, rspec_all) && skip_blocks?
132+
end
133+
134+
def skip_blocks?
135+
cop_config['SkipBlocks']
132136
end
133137

134138
def offensive?(node)

0 commit comments

Comments
 (0)