Skip to content

Commit

Permalink
Add shoulda matchers
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala committed Jun 25, 2023
1 parent 0cea4d4 commit 84f7d1c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -326,6 +328,7 @@ DEPENDENCIES
rubocop-rspec
selenium-webdriver
shakapacker (= 7.0.0)
shoulda-matchers
simplecov
simplecov-lcov
slim-rails (~> 3.6)
Expand Down
8 changes: 8 additions & 0 deletions spec/support/shoulda_matchers.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 84f7d1c

Please sign in to comment.