lib/rubocop/cop/rspec/mixin/inside_example_group.rb in rubocop-rspec-2.7.0 vs lib/rubocop/cop/rspec/mixin/inside_example_group.rb in rubocop-rspec-2.8.0
- old
+ new
@@ -7,14 +7,14 @@
# is within an example group or not.
module InsideExampleGroup
private
def inside_example_group?(node)
- return example_group?(node) if example_group_root?(node)
+ return spec_group?(node) if example_group_root?(node)
root = node.ancestors.find { |parent| example_group_root?(parent) }
- example_group?(root)
+ spec_group?(root)
end
def example_group_root?(node)
node.parent.nil? || example_group_root_with_siblings?(node.parent)
end