Fix the Rubocop offense AmbiguousRegexpLiteral
authorAmir E. Aharoni <amir.aharoni@mail.huji.ac.il>
Wed, 18 Feb 2015 00:23:08 +0000 (02:23 +0200)
committerAmir E. Aharoni <amir.aharoni@mail.huji.ac.il>
Thu, 19 Feb 2015 14:58:50 +0000 (16:58 +0200)
Change-Id: Ic060ce7fd85970cbfec4e9cbee8954dd69492e23

.rubocop_todo.yml
tests/browser/features/step_definitions/create_and_follow_wiki_link_steps.rb

index f0702ba..ccd67a4 100644 (file)
@@ -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:
index ba41f7f..f4e3eb1 100644 (file)
@@ -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|