Fixed Style/StringLiterals RuboCop offense

Bug: T111184
Change-Id: Ia51f271b5e06d7bbd9896634b832003d57c30900
This commit is contained in:
Željko Filipin 2015-09-02 17:21:17 +02:00 committed by Dan Duvall
parent 2bda4398f4
commit 646fc8e94b
6 changed files with 13 additions and 29 deletions

View File

@ -1,5 +1,3 @@
inherit_from: .rubocop_todo.yml
AllCops:
StyleGuideCopsOnly: true
@ -15,9 +13,8 @@ Style/Alias:
Style/SignalException:
Enabled: false
# TODO: uncomment when the time comes
# Style/StringLiterals:
# EnforcedStyle: single_quotes
Style/StringLiterals:
EnforcedStyle: single_quotes
Style/TrivialAccessors:
ExactNameMatch: true

View File

@ -1,13 +0,0 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2015-09-02 17:15:05 +0200 using RuboCop version 0.33.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 13
# Cop supports --auto-correct.
# Configuration parameters: SupportedStyles.
Style/StringLiterals:
EnforcedStyle: double_quotes

View File

@ -1,4 +1,4 @@
source "https://rubygems.org"
source 'https://rubygems.org'
gem "mediawiki_selenium", "~> 1.5.0"
gem "rubocop", "~> 0.33.0", require: false
gem 'mediawiki_selenium', '~> 1.5.0'
gem 'rubocop', '~> 0.33.0', require: false

View File

@ -1,4 +1,4 @@
require "mediawiki_selenium"
require 'mediawiki_selenium'
require "mediawiki_selenium/support"
require "mediawiki_selenium/step_definitions"
require 'mediawiki_selenium/support'
require 'mediawiki_selenium/step_definitions'

View File

@ -12,7 +12,7 @@
class DoesNotExistPage
include PageObject
page_url "<%=params[:page_name]%>"
page_url '<%=params[:page_name]%>'
a(:create_source, text: "Create source")
a(:create_source, text: 'Create source')
end

View File

@ -12,7 +12,7 @@
class EditPage
include PageObject
text_area(:article_text, id: "wpTextbox1")
img(:math_image, class: "tex")
button(:preview, id: "wpPreview")
text_area(:article_text, id: 'wpTextbox1')
img(:math_image, class: 'tex')
button(:preview, id: 'wpPreview')
end