diff --git a/.rubocop.yml b/.rubocop.yml index 870a41b..84567a5 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,3 @@ -inherit_from: .rubocop_todo.yml - AllCops: StyleGuideCopsOnly: true @@ -15,9 +13,8 @@ Style/Alias: Style/SignalException: Enabled: false -# uncomment when fixed -# Style/StringLiterals: -# EnforcedStyle: single_quotes +Style/StringLiterals: + EnforcedStyle: single_quotes Style/TrivialAccessors: ExactNameMatch: true diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml deleted file mode 100644 index f0de6d2..0000000 --- a/.rubocop_todo.yml +++ /dev/null @@ -1,13 +0,0 @@ -# This configuration was generated by -# `rubocop --auto-gen-config` -# on 2015-11-25 15:48:57 +0100 using RuboCop version 0.35.1. -# 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: 15 -# Cop supports --auto-correct. -# Configuration parameters: SupportedStyles. -Style/StringLiterals: - EnforcedStyle: double_quotes diff --git a/Gemfile b/Gemfile index 429c07d..b87770d 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,4 @@ -source "https://rubygems.org" +source 'https://rubygems.org' -gem "mediawiki_selenium", "~> 1.6.2" -gem "rubocop", "~> 0.35.1", require: false +gem 'mediawiki_selenium', '~> 1.6.2' +gem 'rubocop', '~> 0.35.1', require: false diff --git a/Rakefile b/Rakefile index 4835bcd..3342a96 100644 --- a/Rakefile +++ b/Rakefile @@ -1,14 +1,14 @@ -require "bundler/setup" +require 'bundler/setup' -require "rubocop/rake_task" +require 'rubocop/rake_task' RuboCop::RakeTask.new(:rubocop) do |task| # If you use mediawiki-vagrant, rubocop will by default use it's .rubocop.yml # The next line makes it explicit that you want .rubocop.yml from the # directory where `bundle exec rake` is executed: - task.options = ["-c", ".rubocop.yml"] + task.options = ['-c', '.rubocop.yml'] end task default: [:test] -desc "Run all build/tests commands (CI entry point)" +desc 'Run all build/tests commands (CI entry point)' task test: [:rubocop] diff --git a/tests/browser/features/support/env.rb b/tests/browser/features/support/env.rb index 1760965..c1072b2 100644 --- a/tests/browser/features/support/env.rb +++ b/tests/browser/features/support/env.rb @@ -1,3 +1,3 @@ -require "mediawiki_selenium/cucumber" -require "mediawiki_selenium/pages" -require "mediawiki_selenium/step_definitions" +require 'mediawiki_selenium/cucumber' +require 'mediawiki_selenium/pages' +require 'mediawiki_selenium/step_definitions' diff --git a/tests/browser/features/support/pages/random_page.rb b/tests/browser/features/support/pages/random_page.rb index 8d77e97..8dc4e90 100644 --- a/tests/browser/features/support/pages/random_page.rb +++ b/tests/browser/features/support/pages/random_page.rb @@ -12,6 +12,6 @@ class PdfPage include PageObject - a(:download_as_pdf, text: "Download as PDF") - a(:download_the_file, text: "Download the file") + a(:download_as_pdf, text: 'Download as PDF') + a(:download_the_file, text: 'Download the file') end