Fixed Style/StringLiterals RuboCop offense
Bug: T111184 Change-Id: Ia51f271b5e06d7bbd9896634b832003d57c30900
This commit is contained in:
parent
2bda4398f4
commit
646fc8e94b
@ -1,5 +1,3 @@
|
|||||||
inherit_from: .rubocop_todo.yml
|
|
||||||
|
|
||||||
AllCops:
|
AllCops:
|
||||||
StyleGuideCopsOnly: true
|
StyleGuideCopsOnly: true
|
||||||
|
|
||||||
@ -15,9 +13,8 @@ Style/Alias:
|
|||||||
Style/SignalException:
|
Style/SignalException:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# TODO: uncomment when the time comes
|
Style/StringLiterals:
|
||||||
# Style/StringLiterals:
|
EnforcedStyle: single_quotes
|
||||||
# EnforcedStyle: single_quotes
|
|
||||||
|
|
||||||
Style/TrivialAccessors:
|
Style/TrivialAccessors:
|
||||||
ExactNameMatch: true
|
ExactNameMatch: true
|
||||||
|
@ -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
|
|
6
Gemfile
6
Gemfile
@ -1,4 +1,4 @@
|
|||||||
source "https://rubygems.org"
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
gem "mediawiki_selenium", "~> 1.5.0"
|
gem 'mediawiki_selenium', '~> 1.5.0'
|
||||||
gem "rubocop", "~> 0.33.0", require: false
|
gem 'rubocop', '~> 0.33.0', require: false
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
require "mediawiki_selenium"
|
require 'mediawiki_selenium'
|
||||||
|
|
||||||
require "mediawiki_selenium/support"
|
require 'mediawiki_selenium/support'
|
||||||
require "mediawiki_selenium/step_definitions"
|
require 'mediawiki_selenium/step_definitions'
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
class DoesNotExistPage
|
class DoesNotExistPage
|
||||||
include PageObject
|
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
|
end
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
class EditPage
|
class EditPage
|
||||||
include PageObject
|
include PageObject
|
||||||
|
|
||||||
text_area(:article_text, id: "wpTextbox1")
|
text_area(:article_text, id: 'wpTextbox1')
|
||||||
img(:math_image, class: "tex")
|
img(:math_image, class: 'tex')
|
||||||
button(:preview, id: "wpPreview")
|
button(:preview, id: 'wpPreview')
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user