lib/rubocop/cop/rspec/factory_bot/syntax_methods.rb in rubocop-rspec-2.18.1 vs lib/rubocop/cop/rspec/factory_bot/syntax_methods.rb in rubocop-rspec-2.19.0
- old
+ new
@@ -69,17 +69,17 @@
private
def crime_scene(node)
range_between(
- node.loc.expression.begin_pos,
+ node.source_range.begin_pos,
node.loc.selector.end_pos
)
end
def offense(node)
range_between(
- node.loc.expression.begin_pos,
+ node.source_range.begin_pos,
node.loc.selector.begin_pos
)
end
end
end