Another option would be to use a helper method versus relying on the tags:
require "spec"
def with_clean_db(description : String, &block)
it description do
MyDbPool.truncate_entire_database_for_testing!
block.call
MyDbPool.truncate_entire_database_for_testing!
end
end
describe "Test" do
with_clean_db "finds newly inserted records" do
# Queries, tests, and such
end
end