Skip to content

Commit

Permalink
Add test for loading config without warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski committed Nov 19, 2024
1 parent 988bdbe commit c51c6e4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/standard/base_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [])
Expand Down

0 comments on commit c51c6e4

Please sign in to comment.