Skip to content

Commit 3864576

Browse files
committed
Reduce DescribedClass class size to pass rubocop
1 parent 6344a10 commit 3864576

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
@@ -132,11 +132,7 @@ def scope_change?(node)
132132
end
133133

134134
def skippable_block?(node)
135-
node.block_type? && !rspec_block?(node) && skip_blocks?
136-
end
137-
138-
def skip_blocks?
139-
cop_config['SkipBlocks']
135+
node.block_type? && !rspec_block?(node) && cop_config['SkipBlocks']
140136
end
141137

142138
def offensive?(node)

0 commit comments

Comments
 (0)