db-query-matchers
db-query-matchers copied to clipboard
RSpec matchers for database queries
Hi! how I can use this gem in request tests? thanks!
Hi ! We want to implement db-query-matchers to test our endpoints to avoid performance regressions. Unfortunately, given the context where they're launched, some tests have different query counts: - If...
If you set the above flag to true, ActiveRecord prepends the comment (query source) to the query. This causes [our regex](https://github.com/sds/db-query-matchers/blob/main/lib/db_query_matchers/make_database_queries.rb#L49) to fail because it expects the query to start...