use ActiveSupport::TestCase instead of deprecated ActiveRecord::TestCase, update the assert_queries and assert_no_queries code as previously done for constant_table_saver
use modern find syntax in tests
rails 4.0 and 4.1 compatibility

you can run tests using:

RAILS_VERSION=3.2.18 bundle update; RAILS_ENV=sqlite3 be rake
RAILS_VERSION=4.0.8 bundle update; RAILS_ENV=sqlite3 be rake
RAILS_VERSION=4.1.4 bundle update; RAILS_ENV=sqlite3 be rake

and similarly for RAILS_ENV=postgresql/mysql/mysql2.