Skip to content

Commit

Permalink
Merge pull request #1107 from diowa/shoulda-matchers
Browse files Browse the repository at this point in the history
Add shoulda matchers
  • Loading branch information
tagliala authored Jun 25, 2023
2 parents f1f1b5b + c25984e commit bc04e2f
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 @@ -42,6 +42,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 @@ -254,6 +254,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 @@ -338,6 +340,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 bc04e2f

Please sign in to comment.