Raise errors on deprecations

This commit is contained in:
Daniel O'Connor
2022-11-07 23:58:42 +10:30
parent d3df63912c
commit ace1eebef6

View File

@@ -87,6 +87,8 @@ RSpec.configure do |config|
# https://relishapp.com/rspec/rspec-rails/docs
config.infer_spec_type_from_file_location!
config.raise_errors_for_deprecations!
# controller specs require this to work with Devise
# see https://github.com/plataformatec/devise/wiki/How-To%3a-Controllers-and-Views-tests-with-Rails-3-%28and-rspec%29
config.include Devise::Test::ControllerHelpers, type: :controller