Active support instead of ActiveSupport::Deprecation.silence we can use assert_deprecated