Skip to content

Commit

Permalink
Correct InternalAffairs/ProcessedSourceBufferName cop
Browse files Browse the repository at this point in the history
The CI running RuboCop in Edge is failed. We correct offense for `InternalAffairs/ProcessedSourceBufferName` cop.
https://github.com/rubocop/rubocop-rspec/actions/runs/4241877273/jobs/7372656638

Follow up: rubocop/rubocop#11606

```
lib/rubocop/cop/rspec/file_path.rb:168:45: C: [Correctable] InternalAffairs/ProcessedSourceBufferName: Use file_path instead.
          File.expand_path(processed_source.buffer.name)
                                            ^^^^^^^^^^^

277 files inspected, 1 offense detected, 1 offense autocorrectable
Error: Process completed with exit code 1.
```
  • Loading branch information
ydah committed Feb 22, 2023
1 parent 808ce13 commit 0a81cea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/rspec/file_path.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def routing_spec_path?
end

def expanded_file_path
File.expand_path(processed_source.buffer.name)
File.expand_path(processed_source.file_path)
end
end
end
Expand Down

0 comments on commit 0a81cea

Please # to comment.