diff --git a/test/standard/base_test.rb b/test/standard/base_test.rb index 3e5d30a1..fd6fed71 100644 --- a/test/standard/base_test.rb +++ b/test/standard/base_test.rb @@ -34,6 +34,13 @@ def test_alphabetized_config assert_equal expected, actual, "Cop names should be alphabetized! (See this script to do it for you: https://github.com/standardrb/standard/pull/222#issue-744335213 )" end + def test_configuration_loads_without_warnings + rules = YAML.load_file(BASE_CONFIG) + config = RuboCop::Config.new(rules, BASE_CONFIG) + + assert_silent { config.check } + end + private def to_indented_yaml(cop_hash, without_keys = [])