From 886626f53c554f1258fb28360c5e06dea4f8536b Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Wed, 9 Oct 2019 11:43:20 +0500 Subject: [PATCH] Add gem "rubocop-rspec" --- .rubocop.yml | 1 + Gemfile | 4 ++++ Gemfile.lock | 3 +++ 3 files changed, 8 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 858f4b3..a78f50b 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,6 +1,7 @@ require: - rubocop-performance - rubocop-rails + - rubocop-rspec AllCops: TargetRubyVersion: 2.6 diff --git a/Gemfile b/Gemfile index 2a5931d..639f493 100644 --- a/Gemfile +++ b/Gemfile @@ -135,6 +135,10 @@ group :development, :test do # focused on enforcing Rails best practices and coding conventions. gem 'rubocop-rails', '~> 2.2' + # Code style checking for RSpec files. + # A plugin for the RuboCop code style enforcing & linting tool. + gem 'rubocop-rspec', '~> 1.36' + # rspec-rails is a testing framework for Rails 3+ gem 'rspec-rails', '~> 3.8' diff --git a/Gemfile.lock b/Gemfile.lock index 128fae5..d81f2ca 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -373,6 +373,8 @@ GEM rubocop-rails (2.3.2) rack (>= 1.1) rubocop (>= 0.72.0) + rubocop-rspec (1.36.0) + rubocop (>= 0.68.1) ruby-graphviz (1.2.4) ruby-progressbar (1.10.1) ruby_dep (1.5.0) @@ -502,6 +504,7 @@ DEPENDENCIES rubocop (~> 0.72.0) rubocop-performance (~> 1.4) rubocop-rails (~> 2.2) + rubocop-rspec (~> 1.36) selenium-webdriver (~> 3.14) sentry-raven shoulda-matchers (= 4.0.0.rc1)