From bfb87c1e2231ac461db3ae28b81c2b5d712f35c4 Mon Sep 17 00:00:00 2001 From: Shubham Shinde Date: Tue, 27 Aug 2024 12:52:58 +0530 Subject: [PATCH] Capybara --- .rubocop.yml | 17 +++++++++-------- Gemfile | 1 + 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 3d7580f4..01f2208c 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -5,6 +5,7 @@ require: - rubocop-rspec - rubocop-rspec_rails - rubocop-factory_bot +- rubocop-capybara AllCops: TargetRubyVersion: 2.3 @@ -397,13 +398,13 @@ RSpec/DuplicatedMetadata: RSpec/ExcessiveDocstringSpacing: Enabled: true -RSpec/FactoryBot/ConsistentParenthesesStyle: +FactoryBot/ConsistentParenthesesStyle: Enabled: true -RSpec/FactoryBot/FactoryNameStyle: +FactoryBot/FactoryNameStyle: Enabled: true -RSpec/FactoryBot/SyntaxMethods: +FactoryBot/SyntaxMethods: Enabled: true RSpec/IdenticalEqualityAssertion: @@ -418,19 +419,19 @@ RSpec/NoExpectationExample: RSpec/PendingWithoutReason: Enabled: true -RSpec/Rails/AvoidSetupHook: +RSpecRails/AvoidSetupHook: Enabled: true -RSpec/Rails/HaveHttpStatus: +RSpecRails/HaveHttpStatus: Enabled: true -RSpec/Rails/InferredSpecType: +RSpecRails/InferredSpecType: Enabled: true -RSpec/Rails/MinitestAssertions: +RSpecRails/MinitestAssertions: Enabled: true -RSpec/Rails/TravelAround: +RSpecRails/TravelAround: Enabled: true RSpec/RedundantAround: diff --git a/Gemfile b/Gemfile index bd415e5a..a05e62d1 100644 --- a/Gemfile +++ b/Gemfile @@ -33,6 +33,7 @@ group(:development, :test) do gem 'rubocop-rspec', require: false gem 'rubocop-rspec_rails', require: false gem 'rubocop-factory_bot', require: false + gem 'rubocop-capybara', require: false gem 'simplecov', require: false gem 'webmock', '~> 3.18' gem 'yard', require: false