jenkins-bot has submitted this change and it was merged.

Change subject: Fix the Rubocop offense AmbiguousRegexpLiteral
......................................................................


Fix the Rubocop offense AmbiguousRegexpLiteral

Change-Id: Ic060ce7fd85970cbfec4e9cbee8954dd69492e23
---
M .rubocop_todo.yml
M tests/browser/features/step_definitions/create_and_follow_wiki_link_steps.rb
2 files changed, 1 insertion(+), 5 deletions(-)

Approvals:
  Zfilipin: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index f0702ba..ccd67a4 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -5,10 +5,6 @@
 # Note that changes in the inspected code, or installation of new
 # versions of RuboCop, may require this file to be generated again.
 
-# Offense count: 1
-Lint/AmbiguousRegexpLiteral:
-  Enabled: false
-
 # Offense count: 2
 # Cop supports --auto-correct.
 Lint/UnusedMethodArgument:
diff --git 
a/tests/browser/features/step_definitions/create_and_follow_wiki_link_steps.rb 
b/tests/browser/features/step_definitions/create_and_follow_wiki_link_steps.rb
index ba41f7f..f4e3eb1 100644
--- 
a/tests/browser/features/step_definitions/create_and_follow_wiki_link_steps.rb
+++ 
b/tests/browser/features/step_definitions/create_and_follow_wiki_link_steps.rb
@@ -19,7 +19,7 @@
 end
 
 Then(/^I should be on the Link Target Test Page$/) do
-  @browser.url.should match /Link_Target_Test_Page/
+  @browser.url.should match(/Link_Target_Test_Page/)
 end
 
 Then(/^the page content should contain "(.*?)"$/) do |content|

-- 
To view, visit https://gerrit.wikimedia.org/r/191608
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic060ce7fd85970cbfec4e9cbee8954dd69492e23
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Amire80 <[email protected]>
Gerrit-Reviewer: Amire80 <[email protected]>
Gerrit-Reviewer: Zfilipin <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to