Skip to content

Commit 2d63428

Browse files
committed
Reduce DescribedClass class size to pass rubocop
1 parent 70a2248 commit 2d63428

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/rubocop/cop/rspec/described_class.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,7 @@ def scope_change?(node)
129129
end
130130

131131
def skippable_block?(node)
132-
node.block_type? && !rspec_block?(node) && skip_blocks?
133-
end
134-
135-
def skip_blocks?
136-
cop_config['SkipBlocks']
132+
node.block_type? && !rspec_block?(node) && cop_config['SkipBlocks']
137133
end
138134

139135
def offensive?(node)

0 commit comments

Comments
 (0)