From 63d3854e8245663ec86c547bb640e2685ee0bee3 Mon Sep 17 00:00:00 2001 From: James Mead Date: Sat, 4 Jan 2025 11:57:37 +0000 Subject: [PATCH] Remove redundant test name suffixes From `StrictKeywordArgumentMatchingTest`. The fact that the test class name includes the words "strict keyword argument matching" makes these suffixes redundant. These should probably have been removed in this commit [1] in #730. [1]: https://github.com/freerange/mocha/commit/eb84bcdacb34691311d2debd91864acc953098c1 --- test/acceptance/strict_keyword_argument_matching_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/acceptance/strict_keyword_argument_matching_test.rb b/test/acceptance/strict_keyword_argument_matching_test.rb index 3960fb92..1f0ffa33 100644 --- a/test/acceptance/strict_keyword_argument_matching_test.rb +++ b/test/acceptance/strict_keyword_argument_matching_test.rb @@ -18,7 +18,7 @@ def teardown teardown_acceptance_test end - def test_should_not_match_hash_parameter_with_keyword_args_when_strict_keyword_matching_is_enabled + def test_should_not_match_hash_parameter_with_keyword_args test_result = run_as_test do mock = mock() mock.expects(:method).with(key: 42) @@ -27,7 +27,7 @@ def test_should_not_match_hash_parameter_with_keyword_args_when_strict_keyword_m assert_failed(test_result) end - def test_should_not_match_hash_parameter_with_splatted_keyword_args_when_strict_keyword_matching_is_enabled + def test_should_not_match_hash_parameter_with_splatted_keyword_args test_result = run_as_test do mock = mock() kwargs = { key: 42 } @@ -37,7 +37,7 @@ def test_should_not_match_hash_parameter_with_splatted_keyword_args_when_strict_ assert_failed(test_result) end - def test_should_not_match_positional_and_keyword_args_with_last_positional_hash_when_strict_keyword_args_is_enabled + def test_should_not_match_positional_and_keyword_args_with_last_positional_hash test_result = run_as_test do mock = mock() mock.expects(:method).with(1, { key: 42 }) @@ -46,7 +46,7 @@ def test_should_not_match_positional_and_keyword_args_with_last_positional_hash_ assert_failed(test_result) end - def test_should_not_match_last_positional_hash_with_keyword_args_when_strict_keyword_args_is_enabled + def test_should_not_match_last_positional_hash_with_keyword_args test_result = run_as_test do mock = mock() mock.expects(:method).with(1, key: 42)