Fix the Rubocop offense SpaceInsideHashLiteralBraces
authorAmir E. Aharoni <amir.aharoni@mail.huji.ac.il>
Wed, 18 Feb 2015 00:29:58 +0000 (02:29 +0200)
committerAmir E. Aharoni <amir.aharoni@mail.huji.ac.il>
Thu, 19 Feb 2015 14:58:50 +0000 (16:58 +0200)
Done using
bundle exec rubocop -c .rubocop.yml --auto-correct

Change-Id: I8266fe28678c0e30f6dcf67f3d2136254d86d59e

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

index 02058ec..c2f548a 100644 (file)
@@ -35,12 +35,6 @@ Style/HashSyntax:
 Style/PerlBackrefs:
   Enabled: false
 
-# Offense count: 6
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
-Style/SpaceInsideHashLiteralBraces:
-  Enabled: false
-
 # Offense count: 89
 # Cop supports --auto-correct.
 # Configuration parameters: EnforcedStyle, SupportedStyles.
index 7fa2984..79507ca 100644 (file)
@@ -10,7 +10,7 @@
 # https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/CREDITS
 #
 Given(/^I go to Create account page at (.+)$/) do |path|
-  visit(CreateAccountPage, :using_params => {:page_title => path})
+  visit(CreateAccountPage, :using_params => { :page_title => path })
 end
 
 Then(/^form has Create account button$/) do
index 368e6e6..97db0ae 100644 (file)
@@ -6,7 +6,7 @@ end
 
 Given(/^I am on the (.+) page$/) do |article|
   article = article.gsub(/ /, '_')
-  visit(ZtargetPage, :using_params => {:article_name => article})
+  visit(ZtargetPage, :using_params => { :article_name => article })
 end
 
 Given(/^I create page "(.*?)" with content "(.*?)"$/) do |page_title, page_content|
index a2ed1bf..6f017c1 100644 (file)
@@ -10,7 +10,7 @@
 # https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/CREDITS
 #
 Given(/^I am at file that does not exist$/) do
-  visit(FileDoesNotExistPage, using_params: {page_name: @random_string})
+  visit(FileDoesNotExistPage, using_params: { page_name: @random_string })
 end
 
 Then(/^page should show that no such file exists$/) do