From edc88630c446b608d7ea40eb958c37504884fa44 Mon Sep 17 00:00:00 2001 From: "Amir E. Aharoni" Date: Wed, 18 Feb 2015 02:23:08 +0200 Subject: [PATCH] Fix the Rubocop offense AmbiguousRegexpLiteral Change-Id: Ic060ce7fd85970cbfec4e9cbee8954dd69492e23 --- .rubocop_todo.yml | 4 ---- .../step_definitions/create_and_follow_wiki_link_steps.rb | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) 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| -- 2.20.1