From 84f7d1cbb6b6bce0125ad68f72eba9af3714693a Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Sun, 25 Jun 2023 12:13:24 +0200 Subject: [PATCH] Add shoulda matchers --- Gemfile | 1 + Gemfile.lock | 3 +++ spec/support/shoulda_matchers.rb | 8 ++++++++ 3 files changed, 12 insertions(+) create mode 100644 spec/support/shoulda_matchers.rb diff --git a/Gemfile b/Gemfile index dfb30961..eda7d1e5 100644 --- a/Gemfile +++ b/Gemfile @@ -39,6 +39,7 @@ group :test do gem 'capybara' gem 'email_spec' gem 'selenium-webdriver' + gem 'shoulda-matchers' gem 'simplecov', require: false gem 'simplecov-lcov', require: false gem 'webmock', require: false diff --git a/Gemfile.lock b/Gemfile.lock index 1d450d30..e2e6226b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -255,6 +255,8 @@ GEM rack-proxy (>= 0.6.1) railties (>= 5.2) semantic_range (>= 2.3.0) + shoulda-matchers (5.3.0) + activesupport (>= 5.2.0) simplecov (0.22.0) docile (~> 1.1) simplecov-html (~> 0.11) @@ -326,6 +328,7 @@ DEPENDENCIES rubocop-rspec selenium-webdriver shakapacker (= 7.0.0) + shoulda-matchers simplecov simplecov-lcov slim-rails (~> 3.6) diff --git a/spec/support/shoulda_matchers.rb b/spec/support/shoulda_matchers.rb new file mode 100644 index 00000000..edcf9dd8 --- /dev/null +++ b/spec/support/shoulda_matchers.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +Shoulda::Matchers.configure do |config| + config.integrate do |with| + with.test_framework :rspec + with.library :rails + end +end