lib/rubocop/cop/rspec/let_before_examples.rb in rubocop-rspec-1.23.0 vs lib/rubocop/cop/rspec/let_before_examples.rb in rubocop-rspec-1.24.0
- old
+ new
@@ -29,9 +29,11 @@
#
# it 'checks what some does' do
# expect(some).to be
# end
class LetBeforeExamples < Cop
+ include RangeHelp
+
MSG = 'Move `let` before the examples in the group.'.freeze
def_node_matcher :let?, '(block (send nil? {:let :let!} ...) ...)'
def_node_matcher :example_or_group?, <<-PATTERN
{