From: Amir E. Aharoni Date: Wed, 18 Feb 2015 00:23:08 +0000 (+0200) Subject: Fix the Rubocop offense AmbiguousRegexpLiteral X-Git-Tag: 1.31.0-rc.0~12345^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=edc88630c446b608d7ea40eb958c37504884fa44;p=lhc%2Fweb%2Fwiklou.git Fix the Rubocop offense AmbiguousRegexpLiteral Change-Id: Ic060ce7fd85970cbfec4e9cbee8954dd69492e23 --- diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index f0702ba09a..ccd67a4e84 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 ba41f7fbdb..f4e3eb14e2 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 @@ When(/^I click the Link Target link$/) do 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|