smarter spec helper.