Is it needed to read the file? What about check for the file name:
```ruby
next if file.match /(_test|_spec).rb$/
```