Right. Such test helper actually exist inside Rails own test suite, and I do have a similar assert_queries
helper in the vast majority of my apps. On some bigger apps, the helper even allow to test how many queries did hit the query cache.
So yeah I’d be quite in favor of this.