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

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