From 47d046f600ce00955354f7553b8844252b708e45 Mon Sep 17 00:00:00 2001 From: Jack Jennings Date: Mon, 9 Oct 2023 15:22:44 -0700 Subject: [PATCH] fix order of arguments in base test assertions --- test/standard/base_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/standard/base_test.rb b/test/standard/base_test.rb index f9d8e304..3e5d30a1 100644 --- a/test/standard/base_test.rb +++ b/test/standard/base_test.rb @@ -23,15 +23,15 @@ def test_configures_all_rubocop_cops end end - assert_equal missing, [], "Configure these cops as either Enabled: true or Enabled: false in #{BASE_CONFIG}" - assert_equal extra, [], "These cops do not exist and should not be configured in #{BASE_CONFIG}" + assert_equal [], missing, "Configure these cops as either Enabled: true or Enabled: false in #{BASE_CONFIG}" + assert_equal [], extra, "These cops do not exist and should not be configured in #{BASE_CONFIG}" end def test_alphabetized_config actual = YAML.load_file(BASE_CONFIG).keys - ["require"] expected = actual.sort - assert_equal actual, expected, "Cop names should be alphabetized! (See this script to do it for you: https://github.com/standardrb/standard/pull/222#issue-744335213 )" + 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 private