lib/rubocop/cop/rspec/leading_subject.rb in rubocop-rspec-1.15.0 vs lib/rubocop/cop/rspec/leading_subject.rb in rubocop-rspec-1.15.1
- old
+ new
@@ -52,10 +52,10 @@
end
private
def let?(node)
- [:let, :let!].include?(node.method_name)
+ %i[let let!].include?(node.method_name)
end
def find_first_let(node)
node.parent.children.find { |sibling| let?(sibling) }
end