lib/rubocop/cop/rspec/file_path.rb in rubocop-rspec-2.18.1 vs lib/rubocop/cop/rspec/file_path.rb in rubocop-rspec-2.19.0
- old
+ new
@@ -163,10 +163,10 @@
def routing_spec_path?
expanded_file_path.include?('spec/routing/')
end
def expanded_file_path
- File.expand_path(processed_source.buffer.name)
+ File.expand_path(processed_source.file_path)
end
end
end
end
end