This method can be just one line, and you can avoid regexen:

```ruby
@project.targets.to_a.delete_if { |t| t.name.end_with?('Test') }
```