This is a simple question, I want to clean up carrierwave picture after the Rspec test.
The picture file is in
Dir doesn't take a regular expression, it takes a shell wildcard expression. These might look superficially similar, especially with
.* being a common feature in both, but they're not the same.
If you want to use a regular expression you have to fetch all entries and then filter them with something like