rails/rails — pull request #14548 by eileencodes (2014-04-01 03:00:46+00:00)
Title: refactor assert_sql query to reuse capture_sql

Sets assert_sql to reuse the capture_sql method instead of repeating code.

This PR fixes the refactoring discussed in #14546.