From cd1448c8d551c6f7a4c658600bea8494cbff9b32 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Sun, 7 Mar 2021 12:42:47 +0900 Subject: [PATCH] Fix a build error This commit fixes the following build error. ```console % cd path/to/rubocop % bundle exec rake (snip) 1) RuboCop Project Changelog future entries For /Users/koic/src/github.com/rubocop/rubocop/spec/../changelog/fix_comments_negated_if_else_condition_cop.md entry link to related issue has a valid URL Failure/Error: expect(issue[:url]).to match(pattern) expected "https://github.com/rubocop-hq/rubocop/issues/9429" to match /^https:\/\/github\.com\/rubocop\/rubocop\/(?:issues|pull)\/9429$/ Diff: @@ -1 +1 @@ -/^https:\/\/github\.com\/rubocop\/rubocop\/(?:issues|pull)\/9429$/ +"https://github.com/rubocop-hq/rubocop/issues/9429" Shared Example Group: "has Changelog format" called from ./spec/project_spec.rb:261 # ./spec/project_spec.rb:192:in `block (6 levels) in ' # ./spec/project_spec.rb:188:in `each' # ./spec/project_spec.rb:188:in `block (5 levels) in ' # tasks/spec_runner.rake:70:in `run_worker' # tasks/spec_runner.rake:30:in `block in run_specs' # tasks/spec_runner.rake:44:in `with_encoding' # tasks/spec_runner.rake:28:in `run_specs' # tasks/spec_runner.rake:116:in `block in ' 1 deprecation logged to /tmp/test_queue_worker_27584_output ``` --- changelog/fix_comments_negated_if_else_condition_cop.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog/fix_comments_negated_if_else_condition_cop.md b/changelog/fix_comments_negated_if_else_condition_cop.md index f87bdf196aa..7840586db0f 100644 --- a/changelog/fix_comments_negated_if_else_condition_cop.md +++ b/changelog/fix_comments_negated_if_else_condition_cop.md @@ -1 +1 @@ -* [#9429](https://github.com/rubocop-hq/rubocop/issues/9429): Fix `Style/NegatedIfElseCondition` autocorrect to keep comments in correct branch. ([@tejasbubane][]) +* [#9429](https://github.com/rubocop/rubocop/issues/9429): Fix `Style/NegatedIfElseCondition` autocorrect to keep comments in correct branch. ([@tejasbubane][])