Skip to content

Commit

Permalink
Require shoulda/matchers and database_cleaner in spec_helper.rb (#2340)
Browse files Browse the repository at this point in the history
  • Loading branch information
julianguyen authored Dec 9, 2024
1 parent a4d84d6 commit 3c6c6de
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ end
group :test do
gem 'database_cleaner'
gem 'rails-controller-testing'
gem 'shoulda-matchers', '~> 5.3.0'
gem 'shoulda-matchers', '~> 6.0'
gem 'simplecov', '~> 0.17.0'
end

Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ GEM
semantic_range (3.0.0)
sentry-ruby (5.9.0)
concurrent-ruby (~> 1.0, >= 1.0.2)
shoulda-matchers (5.3.0)
shoulda-matchers (6.4.0)
activesupport (>= 5.2.0)
sidekiq (6.5.10)
connection_pool (>= 2.2.5, < 3)
Expand Down Expand Up @@ -686,7 +686,7 @@ DEPENDENCIES
sdoc (= 1.0.0)
selenium-webdriver (~> 4.22.0)
sentry-ruby
shoulda-matchers (~> 5.3.0)
shoulda-matchers (~> 6.0)
sidekiq (= 6.5.10)
sidekiq-cron (~> 1.1)
sidekiq-failures
Expand Down
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
require 'rspec/collection_matchers'
require 'capybara/rails'
require 'capybara/rspec'
require 'shoulda/matchers'
require 'database_cleaner'

include Warden::Test::Helpers
Warden.test_mode!
Expand Down

0 comments on commit 3c6c6de

Please # to comment.