Not ordering the IDs caused incorret ones returned The spec is totally at the wrong level but I couldn't make something up that exposed the bug at a deeper level :(
- `Rails.root` is a `Pathname`, so let's use `Rails.root.join` - Clean up most of the remaining `File.join`s