diff --git a/CHANGELOG.md b/CHANGELOG.md index 6be3d0a..0d0dcb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## 19 February 2023 + +- Add shoulda-matchers gem and its configuration + ## 14 February 2023 - Add gitlab-ci.yml file diff --git a/Gemfile b/Gemfile index 60b56d0..f06408e 100644 --- a/Gemfile +++ b/Gemfile @@ -99,6 +99,7 @@ group :test do gem 'database_cleaner-active_record' gem 'factory_bot_rails' gem 'faker' + gem 'shoulda-matchers' # RSpec matchers for JSON API. gem 'jsonapi-rspec' gem 'selenium-webdriver' diff --git a/Gemfile.lock b/Gemfile.lock index 3597010..4203cc2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -320,6 +320,8 @@ GEM rubyzip (>= 1.2.2, < 3.0) websocket (~> 1.0) sexp_processor (4.16.1) + shoulda-matchers (5.3.0) + activesupport (>= 5.2.0) sidekiq (7.0.3) concurrent-ruby (< 2) connection_pool (>= 2.3.0) @@ -412,6 +414,7 @@ DEPENDENCIES rubocop-rails rubocop-rspec selenium-webdriver + shoulda-matchers sidekiq simplecov tzinfo-data diff --git a/README.md b/README.md index 80b5122..1cfb7a1 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,7 @@ You can see a list of gems that are in the project with a link to their commit. - 14- [Redis](https://redis.io/) ([commit](https://github.com/zakariaf/rails-base-app/commit/3d6bd4194c3a992c838093bb8c8c7332784cffba), [PR](https://github.com/zakariaf/rails-base-app/pull/20)) - 15- [Sidekiq](https://github.com/mperham/sidekiq) ([commit](https://github.com/zakariaf/rails-base-app/commit/f7b759d9d42ce3444a04978fe2cbfc66cd120250), [PR](https://github.com/zakariaf/rails-base-app/pull/22)) - 16- [dotenv](https://github.com/bkeepers/dotenv) ([commit](https://github.com/zakariaf/rails-base-app/commit/3aaa696c4228aac2dac40ff42591f07dc74a62bb)) +- 28- [shoulda-matchers]() ([PR] (https://github.com/zakariaf/rails-base-app/pull/34)) ### Front-end diff --git a/spec/support/shoulda_matchers.rb b/spec/support/shoulda_matchers.rb new file mode 100644 index 0000000..edcf9dd --- /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